Function at 0x479746
Capabilities:
Read file on windows

Disassembly:
push 0x1f0
mov eax, 0x4941bb
call fcn.00427e9d
mov esi, 0x4e7a1c
push esi
push 0x44c
call fcn.0047b2c2
push esi
call fcn.00479266
mov eax, dword [0x4e77a8]
shr eax, 0x11
and al, 1
je 0x479a44
xor eax, eax
mov dword [ebp - 0x30], 7
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], cx
mov dword [ebp - 4], eax
lea edx, [ebp - 0x44]
cmp dword [0x4e76ac], 8
mov ecx, 0x4e7698
cmovae ecx, dword [0x4e7698]
call fcn.0040a26f
push 0x2e
lea ecx, [ebp - 0x44]
call fcn.0040ad7b
push str.xstg
lea ecx, [ebp - 0x44]
call fcn.00407941
mov edx, dword [0x4e77d4]
lea ecx, [ebp - 0x44]
ror edx, 5
call fcn.0048bc00
test al, al
je 0x4799ec
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x4ab888
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00437e2b
mov edi, eax
mov dword [ebp - 0x1e8], edi
pop ecx
pop ecx
test edi, edi
je 0x4799ec
mov ecx, edi
call fcn.00408a6e
mov esi, eax
push esi
mov dword [ebp - 0x1e0], esi
call fcn.004275aa
push edi
push 1
push esi
push eax
mov dword [ebp - 0x1e4], eax
call fcn.00438514
add esp, 0x14
test eax, eax
je 0x4799d4
lea ecx, [ebp - 0xe4]
call fcn.00407730
xor eax, eax
push 0xf
pop esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0xbc], al
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], esi
mov byte [ebp - 0xa4], al
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
mov byte [ebp - 0x8c], al
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x74], al
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1e0]
push dword [ebp - 0x1e4]
call fcn.00407017
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0048b460
test al, al
je 0x479955
push dword [ebp - 0x94]
xor ecx, ecx
mov edx, 0x4e7a1c
cmp dword [0x4e7a30], 0x10
mov eax, edx
mov dword [0x4e7a2c], ecx
cmovae eax, dword [0x4e7a1c]
cmp dword [ebp - 0x90], 0x10
mov byte [eax], cl
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
mov ecx, edx
push eax
call fcn.00407017
push 0x4e7a1c
call fcn.00479266
push dword [ebp - 0x7c]
xor ecx, ecx
mov edx, 0x4e7a64
cmp dword [0x4e7a78], 0x10
mov eax, edx
mov dword [0x4e7a74], ecx
cmovae eax, dword [0x4e7a64]
cmp dword [ebp - 0x78], 0x10
mov byte [eax], cl
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
mov ecx, edx
push eax
call fcn.00407017
xor ecx, ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
mov byte [eax], cl
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4799b2
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e0], ecx
cmp eax, 0x1000
jb 0x4799a7
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.004016dc
mov eax, dword [ebp - 0x1e8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1e0]
push eax
push ecx
call fcn.004272f3
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x18], esi
call fcn.0040775f
jmp 0x4799d7
push 0xf
pop esi
push dword [ebp - 0x1e4]
call fcn.004275a5
push edi
call fcn.0043751a
pop ecx
pop ecx
jmp 0x4799ef
push 0xf
pop esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x479a47
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], ecx
cmp eax, 0x1000
jb 0x479a39
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.004016dc
mov eax, dword [ebp - 0x1e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1e0]
push eax
push ecx
call fcn.004272f3
pop ecx
pop ecx
jmp 0x479a47
push 0xf
pop esi
mov edi, 0x4e7a34
push edi
push 0x438
call fcn.0047b2c2
cmp dword [0x4e7a44], 2
jbe 0x479a66
push edi
call fcn.0041356d
mov ecx, dword [0x4e7a10]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [0x4e77a8]
shr eax, 0x12
test al, 1
je 0x479aac
lea ecx, [ebp - 0x1a4]
call fcn.0040729c
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], 5
call fcn.0040ed7c
test al, al
jne 0x479be4
lea ecx, [ebp - 0x1a4]
call fcn.004073e1
xor eax, eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 8
push eax
push 0x40b
call fcn.0047b380
test al, al
je 0x479b0b
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1dc]
call fcn.0040c540
mov byte [ebp - 4], 9
mov ecx, dword [0x4e7a7c]
test ecx, ecx
je 0x479afc
lea eax, [ebp - 0x1dc]
push eax
call fcn.0048b180
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 8
call fcn.0040c5aa
call fcn.0047ab42
cmp dword [0x4e7908], 0
jne 0x479b22
cmp dword [0x4e790c], 0
je 0x479b26
mov al, 1
jmp 0x479b28
xor eax, eax
cmp word [0x4e7b00], 0
jg 0x479b3f
cmp dword [0x4e7ab8], 0
jne 0x479b3f
test al, al
je 0x479b44
call fcn.0047a16f
lea eax, [ebp - 0x44]
push eax
call fcn.00478e26
push 0x4e7adc
push 0x4e7ac4
push 0x4e790c
push 0x4e7908
mov edx, 0x4e7b38
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00486e20
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.0040172c
mov ecx, dword [0x4e7a10]
mov eax, dword [ecx]
call dword [eax]
push edi
call fcn.0047a93c
call fcn.00479dd5
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x479bde
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], ecx
cmp eax, 0x1000
jb 0x479bd5
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.004016dc
mov eax, dword [ebp - 0x1e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1e0]
push eax
push ecx
call fcn.004272f3
pop ecx
pop ecx
call fcn.00427def
ret
lea eax, [ebp - 0x44]
push 0x43
push eax
call fcn.0040175f
mov ecx, eax
call fcn.00408521
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.00405c31
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00405055
push 0x4b8c3c
lea eax, [ebp - 0x1fc]
push eax
call fcn.0042a85e
int3