Function at 0x49a770
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], 0x56a448
lea esi, [ebp - 0x2c]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x56a63a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 0xc]
cmp esi, 0x55a154
jne 0x49bd09
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xb4]
mov dword [esp], eax
call fcn.0046dd98
mov dword [ebp - 0x60], eax
xor esi, esi
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a4e8
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 + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov eax, dword [ebp - 0x30]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49bd53
mov dword [esp], ebx
call fcn.0049a544
mov eax, dword [ebp - 0x60]
sub eax, dword [ebx + 0xb0]
mov dword [ebp - 0x60], eax
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], 0x56a45f
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x49bbed
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 0x49bbbb
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.00499ab4
mov dword [esp], ebx
call fcn.00499bb0
test al, al
je 0x49bace
mov edx, dword [ebx + 0xa8]
mov eax, dword [ebx + 8]
lea ecx, [edx + 1]
cmp ecx, eax
jae 0x49a8f7
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 0x49b0d0
mov ecx, eax
xor ecx, 0x24
or ecx, edx
je 0x49ace0
mov eax, 0x1c
mov dword [ebx + 0x64], eax
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x20], eax
test eax, eax
je 0x49bb84
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a50c
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 + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov eax, dword [ebp - 0x34]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49bb00
inc dword [ebx + 0xa8]
mov eax, dword [ebx + 0x6c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00499b58
mov dword [ebx + 0x6c], eax
cmp eax, 0x200
je 0x49b0ac
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x58], eax
test eax, eax
je 0x49bc17
mov edx, dword [ebx + 0x6c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebx + 0xa8]
add eax, 4
mov dword [ebp - 0x5c], eax
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x98]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00499b58
mov edi, eax
mov dword [ebx + 0x98], eax
cmp eax, 0x40000
je 0x49b410
cmp eax, 0x48000
je 0x49b5b0
mov eax, dword [ebp - 0x5c]
add eax, 4
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x78]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00499b58
mov edx, eax
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x5c]
add eax, 8
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x68], edx
call fcn.00499b58
mov ecx, eax
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp - 0x5c]
add eax, 0xc
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x6c], ecx
call fcn.00499b58
mov dword [ebx + 0x80], 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 + 0x64]
cmp edi, 0x20
je 0x49b38c
cmp edi, 0x24
je 0x49b554
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [esp + 4], eax
mov dword [esp], 0x56a54b
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x49aec8
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x49af58
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x49af10
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x49ad58
mov edi, dword [ebx + 0x88]
test edi, edi
jne 0x49acec
mov ecx, dword [ebx + 0x84]
test ecx, ecx
jne 0x49acec
mov eax, dword [ebx + 0x88]
test eax, eax
jne 0x49b238
mov eax, dword [ebx + 0x90]
test eax, eax
jne 0x49b1f0
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a550
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 + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov eax, dword [ebp - 0x38]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49bcc1
mov dword [esp], esi
call sub.msvcrt.dll_rewind
cmp dword [ebx + 0x6c], 0x200
je 0x49b330
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x49ab71
mov dword [esp], eax
call fcn.00538958
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x58], 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 0x49bc85
mov eax, dword [ebx + 0x98]
cmp eax, 0x40000
je 0x49b2a8
cmp eax, 0x48000
je 0x49b4a4
lea eax, [ebp - 0x1d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a574
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 + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov eax, dword [ebp - 0x3c]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49bdae
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x49b054
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x49aff8
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x49afa0
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x49ad9c
mov edi, dword [ebx + 0x84]
test edi, edi
jne 0x49b120
mov ecx, dword [ebx + 0x88]
test ecx, ecx
jne 0x49b604
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a5b0
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 + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov eax, dword [ebp - 0x40]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49ba27
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x64]
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 + 0x64]
jne 0x49ba55
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 0x49a8fc
mov eax, dword [ebx + 0x8c]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x24], eax
test eax, eax
je 0x49ba9c
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x49aae3
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x49aae3
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 + 0x84]
test edx, edx
jne 0x49b0dc
mov dword [ebp - 0x60], 0
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x49ab06
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x49ab06
mov dword [ebp - 0x60], 5
jmp 0x49ab06
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x49ae3e
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x49adb9
mov dword [esp], eax
call fcn.00538958
mov eax, dword [ebx + 0x8c]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x24], eax
mov dword [esp + 0xc], esi
mov edx, dword [ebx + 0x8c]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x8c]
jne 0x49b812
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x49ae03
mov dword [esp], eax
call fcn.00538958
mov eax, dword [ebx + 0x84]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x30], 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]
jne 0x49b844
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x49ac55
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x49ae61
mov dword [esp], edx
call fcn.00538958
mov eax, dword [ebx + 0x88]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x2c], 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]
je 0x49ac55
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 + 0x40], eax
test eax, eax
jne 0x49aaa3
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 + 0x3c], eax
test eax, eax
jne 0x49aabc
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 0x49aaae
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 + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x7c]
je 0x49ac2e
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 + 0x80]
je 0x49ac23
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
lea esi, [esi]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x78]
je 0x49ac15
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 + 0x58], eax
test eax, eax
je 0x49bb48
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x64], eax
jmp 0x49a999
mov eax, 0x20
jmp 0x49a8fc
mov eax, dword [ebx + 0x8c]
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 + 0x84]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x49ad6d
mov dword [ebp - 0x60], 5
jmp 0x49ad6d
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x8c]
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 + 0x8c]
jne 0x49b7e0
mov eax, dword [ebx + 0x88]
test eax, eax
jne 0x49b690
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x84]
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 + 0x84]
jne 0x49b7ae
mov eax, dword [ebx + 0x90]
test eax, eax
je 0x49ac55
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 + 0x90]
je 0x49ac55
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
jne 0x49aaff
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 + 0x2c], eax
test eax, eax
je 0x49be22
cmp dword [ebx + 0x88], 0x31fff
ja 0x49aaf1
mov eax, dword [ebx + 0x94]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x49aaf1
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 + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x20000
jne 0x49c00a
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x20000
je 0x49abc3
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 + 0x58]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x800
je 0x49aba7
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 + 0xa8], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x6c], ecx
call fcn.00499b58
mov edx, eax
mov dword [ebx + 0x84], eax
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebp - 0x6c]
cmp eax, 0x32000
jbe 0x49b3de
cmp dword [ebp - 0x60], 0x200000
jbe 0x49b3de
cmp dword [ebx + 0x98], 0x48000
je 0x49b778
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x49bfe4
test eax, eax
jne 0x49b44c
mov eax, dword [ebp - 0x60]
sub eax, edi
mov edi, eax
sub edi, edx
sub edi, ecx
mov dword [ebx + 0x8c], edi
mov eax, edx
mov dword [ebp - 0x5c], 0
jmp 0x49aa88
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x50], eax
test eax, eax
je 0x49bfb2
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x54], eax
test eax, eax
je 0x49bf80
mov edx, dword [ebx + 0xa8]
mov dword [ebp - 0x5c], edx
jmp 0x49a9db
mov dword [ebp - 0x5c], 0x32000
sub dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x94], eax
neg edi
sub edi, dword [ebx + 0x88]
sub edi, dword [ebx + 0x84]
add edi, dword [ebp - 0x60]
sub edi, eax
cmp edi, 0x1a6000
jle 0x49b48b
sub edi, 0x1a6000
mov dword [ebx + 0x90], edi
mov edi, 0x1a6000
sub edi, ecx
mov dword [ebx + 0x8c], edi
mov eax, edx
mov dword [ebp - 0x5c], 0
jmp 0x49aa88
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 0x49bf4e
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
jne 0x49bf1c
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x18000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x18000
je 0x49abc3
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 + 0xa8], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x6c], ecx
call fcn.00499b58
mov edx, eax
mov dword [ebx + 0x84], eax
mov eax, dword [ebp - 0x5c]
add eax, 0x14
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0x88]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x68], edx
call fcn.00499b58
mov dword [ebx + 0x88], eax
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
jmp 0x49b3be
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x44], eax
test eax, eax
je 0x49beea
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x48], eax
test eax, eax
je 0x49beb8
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x49be86
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0x5c], eax
jmp 0x49a9db
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x8c]
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 + 0x8c]
jne 0x49be54
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x88]
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 + 0x88]
je 0x49ac55
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 + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebx + 0x88]
jne 0x49bc4e
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x49b718
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 + 0x94]
je 0x49b718
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 + 0x84]
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 + 0x84]
je 0x49b188
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 0x49b7a0
neg edi
sub edi, edx
sub edi, eax
add edi, dword [ebp - 0x60]
sub edi, ecx
mov dword [ebx + 0x8c], edi
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x5c], 1
jmp 0x49aa88
xor eax, eax
mov dword [ebp - 0x5c], 1
jmp 0x49aa88
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], 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], 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 0x49b982
cmp edx, 2
je 0x49b923
mov dword [esp], eax
call fcn.00538d08
lea eax, [ebp - 0x21]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a49d
lea edi, [ebp - 0x4c]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 0xc], 0x56a63a
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov dword [esp], edi
call fcn.0050a12c
test esi, esi
je 0x49b8f4
mov dword [esp], esi
call sub.msvcrt.dll_fclose
call fcn.00538ed4
mov al, 1
jmp 0x49acd3
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 0x49b90e
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], 0x56a486
lea esi, [ebp - 0x48]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x56a63a
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov dword [esp], esi
call fcn.0050a12c
jmp 0x49b8f4
mov dword [esp], eax
call fcn.00538d08
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a464
lea edi, [ebp - 0x44]
mov dword [esp], edi
call fcn.00509af0
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x56a63a
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xb4]
mov dword [esp], eax
call fcn.0046b578
mov dword [esp], edi
call fcn.0050a12c
mov edx, dword [ebp - 0x60]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00499fc4
jmp 0x49b8e8
cmp dword [0x554500], 0
jne 0x49ba87
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49ac9c
lea eax, [ebp - 0x27]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49ac9c
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 + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49ba39
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], 0x56a5cc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x571f80
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x49bb33
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49a959
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49a959
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49bb12
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 0x49b876
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 0x49b919
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], 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 0x49b88a
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 0x49b876
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 0x49b88a
cmp dword [0x554500], 0
jne 0x49bcf4
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49ab4d
lea eax, [ebp - 0x25]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49ab4d
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49bcd3
cmp dword [0x554500], 0
jne 0x49bdeb
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49a7cd
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49a7cd
cmp dword [0x554500], 0
jne 0x49bd99
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49a82e
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49a82e
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49bd65
cmp dword [0x554500], 0
jne 0x49be03
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49ac0a
lea eax, [ebp - 0x26]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49ac0a
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49bd1f
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49bdc0
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], 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
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 0x49aa88
mov edi, dword [ebp - 0x60]
sub edi, dword [ebx + 0x64]
sub edi, eax
sub edi, ecx
mov dword [ebx + 0x8c], edi
xor eax, eax
jmp 0x49aa88
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