Function at 0x47e470
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
push 0x18
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x3c], 0
call fcn.00408fd0
mov edi, eax
lea edx, [ebp - 4]
add esp, 4
mov dword [ebp - 0x10], edi
mov ecx, edi
mov dword [ebp - 4], edi
call fcn.004096f0
lea ecx, [edi + 4]
call fcn.004096f0
lea ecx, [edi + 8]
call fcn.004096f0
mov word [edi + 0xc], 0x101
mov ecx, edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x14], 0xe4
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
cmp byte [eax + 0xd], 0
jne 0x47e519
jmp 0x47e4f0
cmp dword [eax + 0x10], 0xe4
mov dword [ebp - 0x18], eax
jge 0x47e508
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], 0
jmp 0x47e513
mov ecx, eax
mov dword [ebp - 0xc], 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47e4f0
cmp byte [ecx + 0xd], 0
jne 0x47e52c
cmp dword [ecx + 0x10], 0xe4
jle 0x47e5cc
cmp dword [ebp - 0x3c], 0xaaaaaaa
je 0x47e904
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push 0x18
mov dword [ebp - 0x48], eax
call fcn.00408fd0
mov esi, eax
lea edx, [ebp - 0x14]
mov al, byte [0x4aa8fb]
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x44], esi
lea ecx, [esi + 0x10]
push ecx
mov eax, esp
push dword [ebp - 0x1c]
mov dword [eax], edx
call fcn.00417970
lea edx, [ebp - 8]
mov ecx, esi
call fcn.004096f0
lea ecx, [esi + 4]
call fcn.004096f0
lea ecx, [esi + 8]
call fcn.004096f0
lea edx, [ebp - 0x20]
mov word [esi + 0xc], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x20], 0
call fcn.00409b30
mov ecx, dword [ebp - 0x44]
mov esi, eax
test ecx, ecx
je 0x47e5b5
push 0x18
push ecx
call fcn.00409000
add esp, 8
push esi
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
call fcn.004098a0
mov edi, dword [ebp - 0x40]
mov ecx, eax
mov dword [ebp - 0x10], edi
cmp dword [ecx + 0x14], 5
jne 0x47e5f4
push dword [edi + 4]
lea eax, [ebp - 0x40]
push eax
mov ecx, eax
call fcn.004102f0
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [ebp - 0x3c], 0
jmp 0x47e6e8
mov edx, dword [ebp - 0x3c]
mov ecx, edi
mov dword [ebp - 0x18], edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
cmp byte [eax + 0xd], 0
jne 0x47e638
nop
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x10], edx
jge 0x47e624
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], 0
jmp 0x47e62f
mov ecx, eax
mov dword [ebp - 0xc], 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47e610
mov edi, dword [ebp - 0x10]
cmp byte [ecx + 0xd], 0
jne 0x47e647
cmp edx, dword [ecx + 0x10]
jge 0x47e6e1
cmp edx, 0xaaaaaaa
je 0x47e909
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push 0x18
mov dword [ebp - 0x50], eax
call fcn.00408fd0
mov dl, byte [0x4aa8fb]
mov esi, eax
mov byte [ebp - 0x24], dl
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], esi
lea ecx, [esi + 0x10]
push ecx
mov edx, esp
push dword [ebp - 0x24]
mov dword [edx], eax
call fcn.00417970
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004096f0
lea ecx, [esi + 4]
call fcn.004096f0
lea ecx, [esi + 8]
call fcn.004096f0
lea edx, [ebp - 0x24]
mov word [esi + 0xc], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], 0
call fcn.00409b30
mov ecx, dword [ebp - 0x4c]
mov esi, eax
test ecx, ecx
je 0x47e6d0
push 0x18
push ecx
call fcn.00409000
add esp, 8
push esi
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.004098a0
mov ecx, eax
mov dword [ecx + 0x14], 5
mov eax, dword [ebp - 0x40]
push dword [eax + 4]
lea eax, [ebp - 0x40]
push eax
mov ecx, eax
call fcn.004102f0
push 0x18
push dword [ebp - 0x40]
call fcn.00409000
mov edi, dword [ebp - 0x28]
lea eax, [ebx + 8]
mov dword [ebp - 0x60], 0x115eab13
add esp, 8
cmp dword [ebx + 0x1c], 0x10
mov dword [ebp - 0x5c], 0xcb06b29b
mov dword [ebp - 0x58], 0x6775e8c6
mov dword [ebp - 0x54], 0xfe5ca786
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
movaps xmm1, xmmword [ebp - 0x60]
mov dword [ebp - 0x70], 0x115ec961
mov dword [ebp - 0x6c], 0xcb06b29b
mov dword [ebp - 0x68], 0x6775e8c6
mov dword [ebp - 0x64], 0xfe5ca786
pxor xmm1, xmmword [ebp - 0x70]
movaps xmmword [ebp - 0x60], xmm1
jb 0x47e76b
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.004488a2
mov esi, eax
add esp, 8
mov dword [ebp - 0x28], esi
test esi, esi
je 0x47e8e4
push 0x1b
push 0x9e2eae4f
call fcn.0048fcf0
push eax
push 0
push esi
call fcn.00448c84
add esp, 0x14
push esi
call fcn.004487a0
mov dword [ebp - 0x50], 0x88a2
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], 0
xor ecx, 0x17
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], ecx
xor edx, 0
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x48], 0x17
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0x88b5
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
add edx, eax
mov ecx, dword [ebp - 0x44]
adc esi, ecx
add edx, 1
mov dword [ebp - 0x48], edx
adc esi, 0
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
sub edx, eax
mov dword [ebp - 0x50], edx
sbb esi, ecx
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
push eax
push ecx
push edx
push esi
call fcn.00460cc0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
push 0
push 0x1467f1b1
call fcn.0048fc50
push esi
mov esi, dword [ebp - 0x28]
push eax
push esi
call fcn.00448c84
mov eax, dword fs:[0x2c]
add esp, 0x14
mov ecx, dword [eax]
mov eax, dword [0x4bcf3c]
cmp eax, dword [ecx + 4]
jg 0x47e90e
mov ecx, dword [0x4bcf34]
mov eax, ecx
mov edx, dword [0x4bcf30]
sub eax, edx
sar eax, 2
cmp eax, 0x28
jae 0x47e8b3
mov dword [ebp - 0x28], eax
cmp ecx, dword [0x4bcf38]
je 0x47e8a7
mov dword [ecx], eax
add dword [0x4bcf34], 4
jmp 0x47e8b9
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.00410340
jmp 0x47e8b9
mov dword [0x4bcf34], edx
push 0
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00405fa0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x47e8cf
mov eax, dword [edi]
push esi
push dword [ebp - 0x1c]
push 1
push eax
call fcn.00449109
push esi
call fcn.0044892f
add esp, 0x14
mov eax, dword [ebx + 0x1c]
cmp eax, 0x10
jb 0x47e8f9
inc eax
push eax
push dword [ebx + 8]
call fcn.00409000
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401c20
call fcn.00401c20
push 0x4bcf3c
call fcn.00419156
add esp, 4
cmp dword [0x4bcf3c], 0xffffffff
jne 0x47e879
push 0x4934b0
mov dword [0x4bcf30], 0
mov dword [0x4bcf34], 0
mov dword [0x4bcf38], 0
call fcn.00418fd4
add esp, 4
push 0x4bcf3c
call fcn.0041910c
add esp, 4
jmp 0x47e879