Function at 0x478f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x52fc5a
lea esi, [ebp - 0x2c]
mov dword [esp], esi
call fcn.004da74c
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042159c
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 0xc]
cmp esi, 0x521134
jne 0x479306
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x52fc5f
lea esi, [ebp - 0x30]
mov dword [esp], esi
call fcn.004da74c
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042159c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
lea esi, [eax - 0xc]
mov edx, 0x521134
cmp edx, esi
jne 0x47939c
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x52fc64
lea esi, [ebp - 0x34]
mov dword [esp], esi
call fcn.004da74c
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042159c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x34]
lea esi, [eax - 0xc]
mov ecx, 0x521134
cmp ecx, esi
jne 0x47936a
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x52fc69
lea esi, [ebp - 0x38]
mov dword [esp], esi
call fcn.004da74c
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042159c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x38]
lea esi, [eax - 0xc]
mov edx, 0x521134
cmp edx, esi
jne 0x479338
lea eax, [ebp - 0x1d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x52fc6e
lea esi, [ebp - 0x3c]
mov dword [esp], esi
call fcn.004da74c
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042159c
mov esi, eax
mov eax, dword [ebp - 0x3c]
lea edi, [eax - 0xc]
mov ecx, 0x521134
cmp ecx, edi
jne 0x4792d4
cmp dword [ebp - 0x4c], 0xffffffff
je 0x47920c
cmp dword [ebp - 0x54], 0xffffffff
je 0x479218
mov edi, dword [ebx + 4]
mov dword [esp + 4], 0x52fa1b
mov dword [esp], edi
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x47927c
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov dword [esp], esi
call sub.msvcrt.dll_ftell
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_rewind
mov eax, dword [ebp - 0x54]
add eax, 0x4000
mov dword [ebp - 0x50], eax
cmp eax, edi
jae 0x479254
sub edi, dword [ebp - 0x54]
sub edi, 0x4000
mov dword [ebp - 0x4c], edi
mov dword [esp], edi
call fcn.0050963c
mov edi, eax
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fread
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x52fc64
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.004da74c
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0xc], edx
lea ecx, [ebp - 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004214d8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
lea edx, [eax - 0xc]
mov dword [ebp - 0x50], edx
mov ecx, 0x521134
cmp ecx, edx
jne 0x4793f7
cmp dword [ebp - 0x4c], 0xffffffff
je 0x479248
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
lea edx, [ecx + eax + 0x3f80]
mov eax, edx
sub eax, dword [ebp - 0x54]
mov dword [ebx + 0x50], eax
test edi, edi
je 0x4791f5
mov dword [esp], edi
mov dword [ebp - 0x5c], edx
call fcn.00509610
mov edx, dword [ebp - 0x5c]
mov dword [esp], esi
mov dword [ebp - 0x5c], edx
call sub.msvcrt.dll_fclose
mov al, 1
mov edx, dword [ebp - 0x5c]
cmp dword [ebp - 0x58], 0xffffffff
jne 0x479237
nop
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
mov edx, dword [ebp - 0x4c]
add edx, 0xffffff80
cmp dword [ebp - 0x50], 0xffffffff
je 0x479268
mov eax, edx
sub eax, dword [ebp - 0x50]
sub eax, 0xffffff80
mov dword [ebx + 0x50], eax
mov al, 1
cmp dword [ebp - 0x58], 0xffffffff
je 0x47920c
mov ecx, dword [ebp - 0x58]
sub ecx, edx
mov dword [ebx + 0x54], ecx
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
test edi, edi
je 0x479254
mov dword [esp], edi
call fcn.00509610
mov dword [esp], esi
call sub.msvcrt.dll_fclose
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
cmp esi, 0xffffffff
je 0x479278
mov eax, edx
sub eax, esi
mov dword [ebx + 0x50], eax
mov al, 1
jmp 0x479231
xor eax, eax
jmp 0x479231
lea eax, [ebp - 0x1f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x52fc73
lea ebx, [ebp - 0x44]
mov dword [esp], ebx
call fcn.004da74c
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.004d9548
mov dword [esp], 8
call fcn.0050981c
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004e7434
mov dword [esp + 8], 0x4e75ac
mov dword [esp + 4], 0x536f34
mov dword [esp], esi
call fcn.0050a02c
cmp dword [0x51b4e0], 0
jne 0x4793ca
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x4790bb
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004d9148
jmp 0x4790bb
cmp dword [0x51b4e0], 0
jne 0x47944a
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x478f88
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004d9148
jmp 0x478f88
cmp dword [0x51b4e0], 0
jne 0x479432
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x47906f
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004d9148
jmp 0x47906f
cmp dword [0x51b4e0], 0
jne 0x479462
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x479022
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004d9148
jmp 0x479022
cmp dword [0x51b4e0], 0
jne 0x4793e2
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x478fd5
lea eax, [ebp - 0x21]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004d9148
jmp 0x478fd5
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004ae5e4
jmp 0x4792ea
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004ae5e4
jmp 0x4793ae
cmp dword [0x51b4e0], 0
jne 0x479523
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
lea edx, [eax - 1]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 8], edx
test eax, eax
jg 0x4791c8
lea eax, [ebp - 0x25]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.004d9148
jmp 0x4791c8
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004ae5e4
jmp 0x47934e
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004ae5e4
jmp 0x47931c
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004ae5e4
jmp 0x479380
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004ae5e4
jmp 0x479413