Function at 0x478b34
Capabilities:
Read file on windows

Disassembly:
push 0x1f0
mov eax, 0x491fc8
call fcn.0042785d
mov esi, 0x4e49c4
push esi
push 0x44c
call fcn.0047a2dc
push esi
call fcn.00478701
mov eax, dword [0x4e4750]
shr eax, 0x11
test al, 1
je 0x478df3
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.0040a732
push 0x2e
lea ecx, [ebp - 0x44]
call fcn.0040b2a3
push str.xstg
lea ecx, [ebp - 0x44]
call fcn.00402067
mov edx, dword [0x4e477c]
lea ecx, [ebp - 0x44]
ror edx, 5
call fcn.0048a160
test al, al
je 0x478da0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x4a9878
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00433ac3
mov esi, eax
mov dword [ebp - 0x1ec], esi
pop ecx
pop ecx
test esi, esi
je 0x478da0
mov ecx, esi
call fcn.0040901b
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.0043a3cb
add esp, 0x14
test eax, eax
je 0x478d8c
lea ecx, [ebp - 0x11c]
call fcn.00407c6d
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.0040237c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004899b0
test al, al
je 0x478d09
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.0040237c
push 0x4e49c4
call fcn.00478701
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.0040237c
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 0x478d66
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], ecx
cmp eax, 0x1000
jb 0x478d5b
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.00407cd2
jmp 0x478d92
mov edi, dword [ebp - 0x1e0]
push edi
call fcn.00426f65
push esi
call fcn.00433f01
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x478df3
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], ecx
cmp eax, 0x1000
jb 0x478dea
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.0047a2dc
cmp dword [0x4e49ec], 2
jbe 0x478e12
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 0x478e58
lea ecx, [ebp - 0x1dc]
call fcn.0040769f
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 4], 5
call fcn.0040f081
test al, al
jne 0x478f9a
lea ecx, [ebp - 0x1dc]
call fcn.004077f4
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.0047a351
test al, al
je 0x478ec1
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 0x478eb2
lea eax, [ebp - 0x94]
push eax
call fcn.004896a0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 8
call fcn.0040cb17
call fcn.00479c96
cmp dword [0x4e48b0], 0
jne 0x478ed8
cmp dword [0x4e48b4], 0
je 0x478edc
mov al, 1
jmp 0x478ede
xor eax, eax
cmp word [0x4e4aa8], 0
jg 0x478ef5
cmp dword [0x4e4a60], 0
jne 0x478ef5
test al, al
je 0x478efa
call fcn.004794d3
lea eax, [ebp - 0x44]
push eax
call fcn.0047832e
push 0x4e4a84
push 0x4e4a6c
push 0x4e48b4
push 0x4e48b0
mov edx, 0x4e4ae0
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00485cc0
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.00479a90
call fcn.00479199
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x478f94
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], ecx
cmp eax, 0x1000
jb 0x478f8b
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.00408b86
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040613e
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00405794
push 0x4b6664
lea eax, [ebp - 0x1fc]
push eax
call fcn.0042a96e
int3