Function at 0x49054c
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569a70
lea esi, [ebp - 0x2c]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x569c33
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 0xc]
cmp esi, 0x55a154
jne 0x49173d
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044314c
mov dword [ebp - 0x60], eax
xor esi, esi
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569a88
lea edi, [ebp - 0x30]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x30]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x491798
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], 0x569aac
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x491526
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x60]
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4914f4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call fcn.0048fe50
mov dword [esp], ebx
call fcn.0048ff4c
test al, al
je 0x491939
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 8]
lea ecx, [edx + 1]
cmp ecx, eax
jae 0x4906c2
sub eax, 2
sub eax, edx
xor edx, edx
add eax, 5
adc edx, 0
mov ecx, eax
xor ecx, 0x20
or ecx, edx
je 0x490e7c
mov ecx, eax
xor ecx, 0x24
or ecx, edx
je 0x490a90
mov eax, 0x1c
mov dword [ebx + 0x60], eax
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x20], eax
test eax, eax
je 0x4916c8
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569ab0
lea edi, [ebp - 0x34]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x34]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49190b
inc dword [ebx + 0xa0]
mov eax, dword [ebx + 0x68]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0048fef4
mov dword [ebx + 0x68], eax
cmp eax, 0x200
je 0x490e58
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x54], eax
test eax, eax
je 0x4914c2
mov edx, dword [ebx + 0x68]
mov dword [ebp - 0x64], edx
mov eax, dword [ebx + 0xa0]
add eax, 4
mov dword [ebp - 0x5c], eax
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x90]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0048fef4
mov edi, eax
mov dword [ebx + 0x90], eax
cmp eax, 0x40000
je 0x491140
cmp eax, 0x48000
je 0x4912c4
mov eax, dword [ebp - 0x5c]
add eax, 4
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0048fef4
mov edx, eax
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 0x5c]
add eax, 8
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x78]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x68], edx
call fcn.0048fef4
mov ecx, eax
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x5c]
add eax, 0xc
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x6c], ecx
call fcn.0048fef4
mov dword [ebx + 0x7c], eax
add edi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
lea edx, [edi + edx]
mov ecx, dword [ebp - 0x6c]
add edx, ecx
lea ecx, [edx + eax]
mov edi, dword [ebx + 0x60]
cmp edi, 0x20
je 0x4910bc
cmp edi, 0x24
je 0x491268
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [esp + 4], eax
mov dword [esp], 0x569aef
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x490c78
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x490d08
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x490cc0
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x490b08
mov edi, dword [ebx + 0x84]
test edi, edi
jne 0x490a9c
mov ecx, dword [ebx + 0x80]
test ecx, ecx
jne 0x490a9c
mov eax, dword [ebx + 0x84]
test eax, eax
jne 0x490f68
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569af4
lea edi, [ebp - 0x38]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x38]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x491a79
mov dword [esp], esi
call sub.msvcrt.dll_rewind
cmp dword [ebx + 0x68], 0x200
je 0x491060
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x490925
mov dword [esp], eax
call fcn.00538958
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x54], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x20000
jne 0x491980
mov eax, dword [ebx + 0x90]
cmp eax, 0x40000
je 0x490fd8
cmp eax, 0x48000
je 0x4911b8
lea eax, [ebp - 0x1d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569b18
lea edi, [ebp - 0x3c]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x3c]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x4919b7
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x490e00
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x490da8
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x490d50
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x490b4c
mov edi, dword [ebx + 0x80]
test edi, edi
jne 0x490ecc
mov ecx, dword [ebx + 0x84]
test ecx, ecx
jne 0x491318
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569b54
lea edi, [ebp - 0x40]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x40]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x491a31
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x60]
jne 0x4919ff
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x60]
test eax, eax
sete al
add esp, 0x8c
pop ebx
pop esi
pop edi
leave
ret
mov eax, 0x24
jmp 0x4906c7
mov eax, dword [ebx + 0x88]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x24], eax
test eax, eax
je 0x491807
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4908a5
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x4908a5
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov edx, dword [ebx + 0x80]
test edx, edx
jne 0x490e88
mov dword [ebp - 0x60], 0
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x4908ba
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x4908ba
mov dword [ebp - 0x60], 5
jmp 0x4908ba
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x490bee
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x490b69
mov dword [esp], eax
call fcn.00538958
mov eax, dword [ebx + 0x88]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x24], eax
mov dword [esp + 0xc], esi
mov edx, dword [ebx + 0x88]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x88]
jne 0x491839
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x490bb3
mov dword [esp], eax
call fcn.00538958
mov eax, dword [ebx + 0x80]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x2c], eax
mov dword [esp + 0xc], esi
mov edx, dword [ebx + 0x80]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x80]
jne 0x49186b
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x490a06
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x490c11
mov dword [esp], edx
call fcn.00538958
mov eax, dword [ebx + 0x84]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x28], eax
mov dword [esp + 0xc], esi
mov edx, dword [ebx + 0x84]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x84]
je 0x490a06
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x3c], eax
test eax, eax
jne 0x490868
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
lea esi, [esi]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x38], eax
test eax, eax
jne 0x49087e
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
lea esi, [esi]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x490873
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
lea esi, [esi]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x78]
je 0x4909df
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x7c]
je 0x4909d4
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x74]
je 0x4909c9
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
mov dword [esp], 0x800
call fcn.00538984
mov dword [ebx + 0x54], eax
test eax, eax
je 0x49189d
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x64], eax
jmp 0x490764
mov eax, 0x20
jmp 0x4906c7
mov eax, dword [ebx + 0x88]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x24], eax
cmp eax, 1
sbb edx, edx
and edx, 5
mov dword [ebp - 0x60], edx
mov eax, dword [ebx + 0x80]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x490b1d
mov dword [ebp - 0x60], 5
jmp 0x490b1d
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x88]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x88]
jne 0x4918d4
mov eax, dword [ebx + 0x84]
test eax, eax
jne 0x4913a4
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x80]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x80]
je 0x490a06
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x28], eax
test eax, eax
je 0x491ac6
cmp dword [ebx + 0x84], 0x31fff
ja 0x4908b3
mov eax, dword [ebx + 0x8c]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x4908b3
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x20000
jne 0x491be6
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x20000
je 0x490977
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x800
je 0x49095b
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov eax, dword [ebp - 0x5c]
add eax, 0x10
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x6c], ecx
call fcn.0048fef4
mov edx, eax
mov dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebp - 0x6c]
cmp eax, 0x32000
jbe 0x49110e
cmp dword [ebp - 0x60], 0x200000
jbe 0x49110e
cmp dword [ebx + 0x90], 0x48000
je 0x49148c
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x491bc0
test eax, eax
jne 0x49117c
mov eax, dword [ebp - 0x60]
sub eax, edi
mov edi, eax
sub edi, edx
sub edi, ecx
mov dword [ebx + 0x88], edi
mov eax, edx
mov dword [ebp - 0x5c], 0
jmp 0x49084d
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x491b8e
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x50], eax
test eax, eax
je 0x491b5c
mov edx, dword [ebx + 0xa0]
mov dword [ebp - 0x5c], edx
jmp 0x4907a6
mov dword [ebp - 0x5c], 0x32000
sub dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x8c], eax
neg edi
sub edi, dword [ebx + 0x84]
sub edi, dword [ebx + 0x80]
add edi, dword [ebp - 0x60]
sub edi, eax
sub edi, ecx
mov dword [ebx + 0x88], edi
mov eax, edx
mov dword [ebp - 0x5c], 0
jmp 0x49084d
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x18000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x18000
jne 0x491b2a
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x18000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x18000
jne 0x491af8
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x18000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x18000
je 0x490977
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov eax, dword [ebp - 0x5c]
add eax, 0x10
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x6c], ecx
call fcn.0048fef4
mov edx, eax
mov dword [ebx + 0x80], eax
mov eax, dword [ebp - 0x5c]
add eax, 0x14
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x68], edx
call fcn.0048fef4
mov dword [ebx + 0x84], eax
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
jmp 0x4910ee
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x40], eax
test eax, eax
je 0x491c7c
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x44], eax
test eax, eax
je 0x491c4a
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x48], eax
test eax, eax
je 0x491c18
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0x5c], eax
jmp 0x4907a6
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x88]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x88]
jne 0x491cae
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x84]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x84]
je 0x490a06
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x84]
jne 0x491ce0
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x49142c
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x8c]
je 0x49142c
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x80]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x80]
je 0x490a06
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
nop
test edx, edx
je 0x4914b4
neg edi
sub edi, edx
sub edi, eax
add edi, dword [ebp - 0x60]
sub edi, ecx
mov dword [ebx + 0x88], edi
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x5c], 1
jmp 0x49084d
xor eax, eax
mov dword [ebp - 0x5c], 1
jmp 0x49084d
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
call fcn.0050a12c
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
cmp edx, 3
je 0x49165c
cmp edx, 2
je 0x4915fd
mov dword [esp], eax
call fcn.00538d08
lea eax, [ebp - 0x21]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569bd1
lea edi, [ebp - 0x4c]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 0xc], 0x569c33
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov dword [esp], edi
call fcn.0050a12c
test esi, esi
je 0x4915ce
mov dword [esp], esi
call sub.msvcrt.dll_fclose
call fcn.00538ed4
mov al, 1
jmp 0x490a84
mov dword [ebp - 0x6c], eax
call fcn.00538ed4
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
jmp 0x4915e8
mov dword [esp], eax
call fcn.00538d08
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov edi, eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569bba
lea esi, [ebp - 0x48]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x569c33
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov dword [esp], esi
call fcn.0050a12c
jmp 0x4915ce
mov dword [esp], eax
call fcn.00538d08
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x1f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569b98
lea edi, [ebp - 0x44]
mov dword [esp], edi
call fcn.00509af0
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x569c33
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.0044092c
mov dword [esp], edi
call fcn.0050a12c
mov edx, dword [ebp - 0x5c]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00490350
jmp 0x4915c2
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
jmp 0x4915f3
cmp dword [0x554500], 0
jne 0x49177e
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4905a9
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4905a9
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49174f
cmp dword [0x554500], 0
jne 0x4917cb
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49060a
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49060a
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4917aa
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
jmp 0x491564
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
jmp 0x491550
cmp dword [0x554500], 0
jne 0x49196b
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x490724
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x490724
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 0x569b70
mov dword [esp + 8], 0
mov dword [esp + 4], 0x571f80
mov dword [esp], eax
call fcn.00539374
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49191d
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
jmp 0x491550
cmp dword [0x554500], 0
jne 0x4919ea
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x4909be
lea eax, [ebp - 0x26]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x4909be
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4919c9
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x491a64
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x490a4d
lea eax, [ebp - 0x27]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x490a4d
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x491a43
cmp dword [0x554500], 0
jne 0x491ab1
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x490901
lea eax, [ebp - 0x25]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x490901
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x491a8b
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x49084d
mov edi, dword [ebp - 0x60]
sub edi, dword [ebx + 0x60]
sub edi, eax
sub edi, ecx
mov dword [ebx + 0x88], edi
xor eax, eax
jmp 0x49084d
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
jmp 0x491564