Function at 0x4952dc
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], 0x569f58
lea esi, [ebp - 0x2c]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x56a11b
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 0xc]
cmp esi, 0x55a154
jne 0x4964a3
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.00454fb4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569f70
lea esi, [ebp - 0x30]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.00452794
mov eax, dword [ebp - 0x30]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x4964fe
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], 0x569f94
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x4962b6
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 0x496284
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.00494b5c
mov dword [esp], ebx
call fcn.00494c58
test al, al
je 0x49668e
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 8]
lea ecx, [edx + 1]
cmp ecx, eax
jae 0x495450
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 0x495c0c
mov ecx, eax
xor ecx, 0x24
or ecx, edx
je 0x495820
mov eax, 0x1c
mov dword [ebx + 0x60], eax
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x20], eax
test eax, eax
je 0x49646c
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569f98
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.00452794
mov eax, dword [ebp - 0x34]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x496660
inc dword [ebx + 0xa0]
mov eax, dword [ebx + 0x68]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00494c00
mov dword [ebx + 0x68], eax
cmp eax, 0x200
je 0x495be8
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x54], eax
test eax, eax
je 0x496252
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.00494c00
mov edi, eax
mov dword [ebx + 0x90], eax
cmp eax, 0x40000
je 0x495ed0
cmp eax, 0x48000
je 0x496054
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.00494c00
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.00494c00
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.00494c00
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 0x495e4c
cmp edi, 0x24
je 0x495ff8
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], 0x569fd7
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x495a08
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x495a98
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x495a50
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x495898
mov edi, dword [ebx + 0x84]
test edi, edi
jne 0x49582c
mov ecx, dword [ebx + 0x80]
test ecx, ecx
jne 0x49582c
mov eax, dword [ebx + 0x84]
test eax, eax
jne 0x495cf8
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569fdc
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.00452794
mov eax, dword [ebp - 0x38]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x4967ce
mov dword [esp], esi
call sub.msvcrt.dll_rewind
cmp dword [ebx + 0x68], 0x200
je 0x495df0
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x4956b3
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 0x4966d5
mov eax, dword [ebx + 0x90]
cmp eax, 0x40000
je 0x495d68
cmp eax, 0x48000
je 0x495f48
lea eax, [ebp - 0x1d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a000
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.00452794
mov eax, dword [ebp - 0x3c]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49670c
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x495b90
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x495b38
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x495ae0
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4958dc
mov edi, dword [ebx + 0x80]
test edi, edi
jne 0x495c5c
mov ecx, dword [ebx + 0x84]
test ecx, ecx
jne 0x4960a8
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a03c
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.00452794
mov eax, dword [ebp - 0x40]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x496786
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 0x496754
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 0x495455
mov eax, dword [ebx + 0x88]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x24], eax
test eax, eax
je 0x49655c
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x495633
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x495633
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 0x495c18
mov dword [ebp - 0x60], 0
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x495648
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x495648
mov dword [ebp - 0x60], 5
jmp 0x495648
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x49597e
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4958f9
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 0x49658e
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x495943
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 0x4965c0
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x495794
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x4959a1
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 0x495794
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 0x4955f6
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 0x49560c
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 0x495601
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 0x49576d
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 0x495762
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 0x495757
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 0x4965f2
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x64], eax
jmp 0x4954f2
mov eax, 0x20
jmp 0x495455
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 0x4958ad
mov dword [ebp - 0x60], 5
jmp 0x4958ad
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 0x496629
mov eax, dword [ebx + 0x84]
test eax, eax
jne 0x496134
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 0x495794
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 0x49681b
cmp dword [ebx + 0x84], 0x31fff
ja 0x495641
mov eax, dword [ebx + 0x8c]
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x495641
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 0x49693b
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 0x495705
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 0x4956e9
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.00494c00
mov edx, eax
mov dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebp - 0x6c]
cmp eax, 0x32000
jbe 0x495e9e
cmp dword [ebp - 0x60], 0x200000
jbe 0x495e9e
cmp dword [ebx + 0x90], 0x48000
je 0x49621c
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x496915
test eax, eax
jne 0x495f0c
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 0x4955db
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x4968e3
mov dword [esp], 0x20000
call fcn.00538984
mov dword [ebx + 0x50], eax
test eax, eax
je 0x4968b1
mov edx, dword [ebx + 0xa0]
mov dword [ebp - 0x5c], edx
jmp 0x495534
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 0x4955db
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 0x49687f
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 0x49684d
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 0x495705
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.00494c00
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.00494c00
mov dword [ebx + 0x84], eax
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
jmp 0x495e7e
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x40], eax
test eax, eax
je 0x4969d1
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x44], eax
test eax, eax
je 0x49699f
mov dword [esp], 0x18000
call fcn.00538984
mov dword [ebx + 0x48], eax
test eax, eax
je 0x49696d
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0x5c], eax
jmp 0x495534
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 0x496a03
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 0x495794
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 0x496a35
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x4961bc
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 0x4961bc
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 0x495794
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 0x496244
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 0x4955db
xor eax, eax
mov dword [ebp - 0x5c], 1
jmp 0x4955db
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 0x4963de
cmp edx, 2
je 0x49637f
mov dword [esp], eax
call fcn.00538d08
lea eax, [ebp - 0x21]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a0b9
lea esi, [ebp - 0x4c]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x56a11b
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.00452794
mov dword [esp], esi
call fcn.0050a12c
call fcn.00538ed4
mov al, 1
jmp 0x495812
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 0x49636a
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], 0x56a0a2
lea esi, [ebp - 0x48]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x56a11b
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.00452794
mov dword [esp], esi
call fcn.0050a12c
jmp 0x49634e
mov dword [esp], eax
call fcn.00538d08
mov edi, dword [eax]
lea eax, [ebp - 0x1f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56a080
lea esi, [ebp - 0x44]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x56a11b
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [ebx + 0xa8]
mov dword [esp], eax
call fcn.00452794
mov dword [esp], esi
call fcn.0050a12c
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00495174
jmp 0x49634e
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 0x496375
cmp dword [0x554500], 0
jne 0x4964e4
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x495339
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x495339
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4964b5
cmp dword [0x554500], 0
jne 0x496531
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x495398
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x495398
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x496510
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 0x4962f4
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 0x4962e0
cmp dword [0x554500], 0
jne 0x4966c0
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x4954b2
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x4954b2
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 0x56a058
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 0x496672
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 0x4962e0
cmp dword [0x554500], 0
jne 0x49673f
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49574c
lea eax, [ebp - 0x26]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49574c
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49671e
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 0x4967b9
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x4957db
lea eax, [ebp - 0x27]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x4957db
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x496798
cmp dword [0x554500], 0
jne 0x496806
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49568f
lea eax, [ebp - 0x25]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49568f
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4967e0
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 0x4955db
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 0x4955db
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 0x4962f4