Function at 0x478b14
Capabilities:
Read file on windows

Disassembly:
push 0x1f0
mov eax, 0x491fc8
call fcn.0042785d
mov esi, 0x4e49c4
push esi
push 0x44c
call fcn.0047a2bc
push esi
call fcn.004786e1
mov eax, dword [0x4e4750]
shr eax, 0x11
test al, 1
je 0x478dd3
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], cx
mov dword [ebp - 4], eax
lea edx, [ebp - 0x44]
cmp dword [0x4e466c], 8
mov ecx, 0x4e4658
cmovae ecx, dword [0x4e4658]
call fcn.0040a736
push 0x2e
lea ecx, [ebp - 0x44]
call fcn.0040b2a7
push str.xstg
lea ecx, [ebp - 0x44]
call fcn.00402069
mov edx, dword [0x4e477c]
lea ecx, [ebp - 0x44]
ror edx, 5
call fcn.0048a160
test al, al
je 0x478d80
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x4a9878
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00433ab3
mov esi, eax
mov dword [ebp - 0x1ec], esi
pop ecx
pop ecx
test esi, esi
je 0x478d80
mov ecx, esi
call fcn.0040901f
mov edi, eax
push edi
mov dword [ebp - 0x1e4], edi
call fcn.00426f6a
push esi
push 1
push edi
push eax
mov dword [ebp - 0x1e0], eax
call fcn.0043a3bb
add esp, 0x14
test eax, eax
je 0x478d6c
lea ecx, [ebp - 0x11c]
call fcn.00407c71
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1e4]
mov edi, dword [ebp - 0x1e0]
push edi
call fcn.0040237e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004899b0
test al, al
je 0x478ce9
cmp dword [0x4e49d8], 0x10
mov edx, 0x4e49c4
push dword [ebp - 0xcc]
mov eax, edx
cmovae eax, dword [0x4e49c4]
xor ecx, ecx
cmp dword [ebp - 0xc8], 0x10
mov dword [0x4e49d4], ecx
mov byte [eax], cl
lea eax, [ebp - 0xdc]
cmovae eax, dword [ebp - 0xdc]
mov ecx, edx
push eax
call fcn.0040237e
push 0x4e49c4
call fcn.004786e1
cmp dword [0x4e4a20], 0x10
mov edx, 0x4e4a0c
push dword [ebp - 0xb4]
mov eax, edx
cmovae eax, dword [0x4e4a0c]
xor ecx, ecx
cmp dword [ebp - 0xb0], 0x10
mov dword [0x4e4a1c], ecx
mov byte [eax], cl
lea eax, [ebp - 0xc4]
cmovae eax, dword [ebp - 0xc4]
mov ecx, edx
push eax
call fcn.0040237e
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov byte [eax], cl
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x478d46
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], ecx
cmp eax, 0x1000
jb 0x478d3b
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x1e0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1e4]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x18], 0xf
call fcn.00407cd6
jmp 0x478d72
mov edi, dword [ebp - 0x1e0]
push edi
call fcn.00426f65
push esi
call fcn.00433ef1
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x478dd3
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], ecx
cmp eax, 0x1000
jb 0x478dca
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x1e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1e0]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
mov esi, 0x4e49dc
push esi
push 0x438
call fcn.0047a2bc
cmp dword [0x4e49ec], 2
jbe 0x478df2
push esi
call fcn.0041336d
mov ecx, dword [0x4e49b8]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [0x4e4750]
shr eax, 0x12
test al, 1
je 0x478e38
lea ecx, [ebp - 0x1dc]
call fcn.004076a3
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 4], 5
call fcn.0040f081
test al, al
jne 0x478f7a
lea ecx, [ebp - 0x1dc]
call fcn.004077f8
xor eax, eax
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 8
push eax
push 0x40b
call fcn.0047a331
test al, al
je 0x478ea1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040cab9
mov byte [ebp - 4], 9
mov ecx, dword [0x4e4a24]
test ecx, ecx
je 0x478e92
lea eax, [ebp - 0x94]
push eax
call fcn.004896a0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 8
call fcn.0040cb17
call fcn.00479c76
cmp dword [0x4e48b0], 0
jne 0x478eb8
cmp dword [0x4e48b4], 0
je 0x478ebc
mov al, 1
jmp 0x478ebe
xor eax, eax
cmp word [0x4e4aa8], 0
jg 0x478ed5
cmp dword [0x4e4a60], 0
jne 0x478ed5
test al, al
je 0x478eda
call fcn.004794b3
lea eax, [ebp - 0x44]
push eax
call fcn.0047830e
push 0x4e4a84
push 0x4e4a6c
push 0x4e48b4
push 0x4e48b0
mov edx, 0x4e4ae0
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00485ca0
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.004015ac
mov ecx, dword [0x4e49b8]
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.00479a70
call fcn.00479179
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x478f74
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], ecx
cmp eax, 0x1000
jb 0x478f6b
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x1e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1e0]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
call fcn.004277af
ret
lea eax, [ebp - 0x44]
push 0x43
push eax
call fcn.004015df
mov ecx, eax
call fcn.00408b8a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406142
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00405794
push 0x4b6674
lea eax, [ebp - 0x1fc]
push eax
call fcn.0042a96e
int3