Function at 0x40ca0d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [0x42b064], 0
mov dword [0x42b068], 0
mov dword [0x42b088], 0
mov dword [0x42b078], 0
mov dword [0x42c200], 0
mov dword [0x42c36c], 0
mov eax, dword [0x42c36c]
mov dword [0x42b134], eax
mov dword [0x42c0f4], 0
mov dword [0x42b07c], 0
mov dword [0x42c20c], 0
mov eax, dword [0x42c20c]
mov dword [0x42b130], eax
mov dword [0x42b480], 0
mov dword [0x42c18c], 0
mov dword [0x42c1fc], 0
mov dword [0x42b4b0], 0
mov dword [0x42ccbc], 0
mov dword [0x42c274], 0
push 0
push 0xffff
push 0x42b178
call fcn.00423cdf
add esp, 0xc
mov dword [0x42b084], 0
mov dword [0x42b524], 0
mov dword [0x42c190], 0
mov dword [0x42cc6c], 0
mov dword [0x42b528], 0
mov eax, dword [ebp + 8]
mov dword [0x42b434], eax
push 0
push 0x42b860
call sub.MSVCRT20.dll__setjmp3
add esp, 8
test eax, eax
jne 0x40e56c
mov eax, dword [0x42b5e0]
push eax
call fcn.004212c8
add esp, 4
cmp dword [0x42b410], 0
je 0x40cb4f
mov dword [0x42b094], 0x2000
jmp 0x40cb59
mov dword [0x42b094], 0x4000
mov dword [0x42b06c], 0x2000
jmp 0x40cb6f
jmp 0x40cb7b
push 0x62
mov eax, dword [0x42c3a8]
push eax
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40cbb4
inc dword [ebp - 0x30]
push 0xa
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT20.dll_strtol]
add esp, 0xc
mov dword [0x42b094], eax
push 0x70
mov eax, dword [0x42c3a8]
push eax
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40cbed
inc dword [ebp - 0x30]
push 0xa
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT20.dll_strtol]
add esp, 0xc
mov dword [0x42b06c], eax
push 0x76
mov eax, dword [0x42c3a8]
push eax
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40cc2b
mov eax, dword [0x42b094]
push eax
mov eax, dword [0x42b06c]
push eax
push 0x100000
push str.Coreleft___5u__Tbuf___5u__Vbuf___5u_n
push 0x22
call fcn.004093aa
add esp, 0x14
cmp dword [0x42c19c], 0
je 0x40cc4b
mov eax, dword [0x42b408]
push eax
call fcn.00420a83
add esp, 4
mov dword [0x42cbfc], eax
push 0
push 0xffff
push 0x42c340
call fcn.00423cdf
add esp, 0xc
mov byte [0x42b8a8], 0x1e
cmp dword [0x42b5c0], 0
je 0x40cfb4
cmp dword [0x42b404], 0
je 0x40cc8d
call fcn.0040c8f6
mov dword [ebp - 0x20], eax
jmp 0x40cde3
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x30], str._s_02d
call fcn.0040ca02
mov eax, dword [0x42b470]
push eax
call sub.MSVCRT20.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], eax
cmp dword [0x42b830], 0x63
ja 0x40cd1e
call dword [sym.imp.MSVCRT20.dll___p___mb_cur_max]
cmp dword [eax], 1
jle 0x40ccf2
push 4
mov eax, dword [ebp - 0x5c]
mov ecx, dword [0x42b470]
movsx eax, byte [eax + ecx - 1]
push eax
call dword [sym.imp.MSVCRT20.dll__isctype]
add esp, 8
mov dword [ebp - 0x64], eax
jmp 0x40cd14
mov eax, dword [ebp - 0x5c]
mov ecx, dword [0x42b470]
movsx ebx, byte [eax + ecx - 1]
call dword [sym.imp.MSVCRT20.dll___p__pctype]
mov eax, dword [eax]
xor ecx, ecx
mov cx, word [eax + ebx*2]
and ecx, 4
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
je 0x40cd85
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x30], str._s_03d
dec dword [ebp - 0x5c]
cmp dword [0x42b830], 0x3e7
jbe 0x40cd6b
cmp dword [0x42cc70], 0
je 0x40cd6b
cmp dword [0x42b830], 0x3e8
jbe 0x40cd5f
dec dword [ebp - 0x5c]
mov dword [ebp - 0x30], str._s_4d
jmp 0x40cd85
cmp dword [0x42b830], 0x3e7
jbe 0x40cd85
mov dword [0x42b830], 1
cmp dword [0x42b830], 0
jbe 0x40cdd7
mov eax, dword [0x42b470]
push eax
call fcn.00419677
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
mov byte [eax + ecx], 0
mov eax, dword [0x42b830]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x42b470]
push eax
call dword [sym.imp.MSVCRT20.dll_sprintf]
add esp, 0x10
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
mov eax, dword [ebp - 0x5c]
add eax, dword [0x42b470]
mov dword [ebp - 0x20], eax
mov dword [0x42c0ac], 1
cmp dword [0x42c0f0], 0
je 0x40cfb4
mov eax, dword [0x42b470]
push eax
call fcn.0042069b
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
cmp dword [0x42c1dc], 0
je 0x40ce71
mov eax, dword [0x42b470]
push eax
call fcn.00420424
add esp, 4
test eax, eax
je 0x40ce71
mov eax, dword [0x42b470]
push eax
call fcn.004207cf
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [0x42c140]
push eax
call fcn.0042069b
add esp, 4
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x40]
add ecx, ecx
cmp eax, ecx
jae 0x40ce6b
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
add dword [ebp - 0x3c], eax
cmp dword [0x42b5c0], 2
jne 0x40ce86
mov eax, dword [ebp - 0x3c]
mov dword [0x42c238], eax
cmp dword [0x42c144], 0
je 0x40cebf
push 0x76
mov eax, dword [0x42c3a8]
push eax
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
test eax, eax
je 0x40cebf
mov eax, dword [ebp - 0x3c]
push eax
push 0x431d30
push 0x22
call fcn.004093aa
add esp, 0xc
cmp dword [ebp - 0x3c], 0x2710
jae 0x40cf23
mov eax, dword [0x42b470]
push eax
push 0x431958
push 0x22
call fcn.004093aa
add esp, 0xc
cmp dword [0x42c2f8], 0
jne 0x40cf16
cmp dword [0x42c134], 0
jne 0x40cf16
push 0x42fe58
push 4
call fcn.004093aa
add esp, 8
xor eax, eax
jmp 0x40e5b1
push 0x42fe58
call fcn.004081d7
add esp, 4
mov eax, dword [0x42c238]
cmp dword [ebp - 0x3c], eax
jae 0x40cf98
cmp dword [0x42c2f8], 0
jne 0x40cf98
cmp dword [0x42c134], 0
jne 0x40cf98
mov eax, dword [0x42b470]
push eax
push 0x431958
push 0x22
call fcn.004093aa
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push eax
push 0x42fe18
mov eax, dword [0x42b460]
push eax
call fcn.004083b8
add esp, 0xc
mov eax, dword [0x42b460]
push eax
push 4
push 0
call fcn.004172d5
add esp, 0xc
test eax, eax
jne 0x40cf98
xor eax, eax
jmp 0x40e5b1
mov eax, dword [0x42b470]
push eax
call fcn.0042069b
add esp, 4
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x40]
cmp eax, ecx
jne 0x40cdfa
mov dword [0x42cc58], 0
mov dword [0x42c3b4], 0
mov eax, dword [0x42b470]
push eax
call fcn.00420424
add esp, 4
test eax, eax
je 0x40d054
cmp dword [0x42c0f0], 0
je 0x40d01b
mov eax, dword [0x42b470]
push eax
call fcn.0042082c
add esp, 4
mov dword [0x42b084], eax
push 0x42f09c
mov eax, dword [0x42b470]
push eax
call fcn.00416476
add esp, 8
mov dword [0x42c3b4], eax
jmp 0x40d033
push 0x42f098
mov eax, dword [0x42b470]
push eax
call fcn.0042045e
add esp, 8
mov dword [0x42c3b4], eax
push 0
mov eax, dword [0x42c280]
push eax
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov dword [0x42c280], 0
mov dword [0x42cc58], 1
cmp dword [0x42c3b4], 0
jne 0x40d120
movsx eax, byte [ebp + 8]
push eax
push str.AJMU
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
test eax, eax
jne 0x40d120
cmp dword [0x42b5c0], 0
je 0x40d10d
cmp dword [0x42c2f8], 0
jne 0x40d10d
cmp dword [0x42c240], 0
jne 0x40d10d
call dword [sym.imp.MSVCRT20.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT20.dll_strerror]
add esp, 4
push eax
call dword [sym.imp.MSVCRT20.dll__errno]
mov eax, dword [eax]
push eax
push 0x4300e0
push 0x44
call fcn.004093aa
add esp, 0x10
push 0x4326d0
push 0x44
call fcn.004093aa
add esp, 8
mov eax, dword [0x42b470]
push eax
push 0x42f968
push 0x44
call fcn.004093aa
add esp, 0xc
call fcn.004173be
xor eax, eax
jmp 0x40e5b1
mov eax, dword [0x42b470]
push eax
push 0x42f968
call fcn.004081d7
add esp, 8
cmp dword [0x42b498], 0
je 0x40d181
lea eax, [ebp - 0x58]
push eax
call fcn.004196e9
add esp, 4
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00423e43
add esp, 8
mov eax, dword [0x42b470]
push eax
mov eax, dword [0x42b430]
push eax
lea eax, [ebp - 0x18]
push eax
push str._s__10ld__s_n
mov eax, dword [0x42cc74]
push eax
call fcn.00408361
add esp, 0x14
test eax, eax
jge 0x40d181
push 0x42fa18
call fcn.004081d7
add esp, 4
mov dword [0x42b624], 1
cmp dword [0x42c3b4], 0
je 0x40d1bb
mov eax, dword [0x42b094]
push eax
push 0
push 0
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_setvbuf]
add esp, 0x10
mov dword [0x42b624], 0
cmp dword [0x42c0f0], 0
jne 0x40d1e2
mov eax, dword [0x42b470]
push eax
push 0x430c50
push 0x22
call fcn.004093aa
add esp, 0xc
jmp 0x40d5ff
cmp dword [0x42c328], 0
jne 0x40d21d
mov dword [0x42c0f4], 0xffffffff
push 0x200
call fcn.0041a3d0
add esp, 4
mov dword [0x42c328], eax
mov eax, dword [0x42c328]
mov byte [eax], 0
mov dword [0x42c0f4], 0
cmp dword [0x42cca4], 0
je 0x40d3cd
cmp dword [0x42c310], 0
jne 0x40d3c8
mov eax, dword [0x42b470]
push eax
call sub.MSVCRT20.dll_strlen
add esp, 4
mov ebx, eax
push str..exe
call sub.MSVCRT20.dll_strlen
add esp, 4
add ebx, eax
inc ebx
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0041a3d0
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [0x42b470]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.MSVCRT20.dll_strcpy
add esp, 8
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0041eba2
add esp, 0xc
mov dword [ebp - 0x44], eax
push 0x2e
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40d2c3
push str..exe
mov eax, dword [ebp - 0x4c]
push eax
call sub.MSVCRT20.dll_strcat
add esp, 8
jmp 0x40d2d4
push str..exe
mov eax, dword [ebp - 0x30]
push eax
call sub.MSVCRT20.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00420424
add esp, 4
test eax, eax
je 0x40d3a8
cmp dword [0x42c2f8], 0
jne 0x40d302
cmp dword [0x42c21c], 0
je 0x40d30e
mov dword [ebp - 0x28], 1
jmp 0x40d315
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
jne 0x40d35e
mov eax, dword [ebp - 0x4c]
push eax
push 0x430198
push 0x22
call fcn.004093aa
add esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
push 0x4313b8
mov eax, dword [0x42b460]
push eax
call fcn.004083b8
add esp, 0xc
mov eax, dword [0x42b460]
push eax
push 6
push 0
call fcn.004172d5
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40d397
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [0x42b470]
push eax
call dword [sym.imp.MSVCRT20.dll__stricmp]
add esp, 8
test eax, eax
je 0x40d3a8
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00420ee0
add esp, 4
test eax, eax
je 0x40d3a8
mov eax, dword [ebp - 0x4c]
push eax
push 0x42f938
call fcn.004081d7
add esp, 8
mov eax, dword [ebp - 0x4c]
push eax
push 0x4307e0
push 0x22
call fcn.004093aa
add esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
jmp 0x40d3fb
mov eax, dword [0x42b470]
push eax
mov eax, 0x4307c0
mov ecx, 0x4313d8
xor edx, edx
cmp dword [0x42c3b4], 0
sete dl
dec edx
sub ecx, eax
and edx, ecx
add edx, eax
push edx
push 0x22
call fcn.004093aa
add esp, 0xc
cmp dword [0x42b148], 0
jne 0x40d5ff
cmp dword [0x42c3b4], 0
jne 0x40d453
push 0x42f0a4
mov eax, dword [0x42b470]
push eax
call fcn.00416476
add esp, 8
mov dword [0x42b180], eax
mov eax, dword [0x42b180]
push eax
call fcn.00416440
add esp, 4
mov dword [0x42b180], 0
mov eax, dword [0x42b470]
push eax
call fcn.00420ee0
add esp, 4
mov dword [0x42c0f4], 0xffffffff
cmp dword [0x42c1dc], 0
je 0x40d491
mov eax, dword [0x42c140]
push eax
mov eax, dword [0x42c328]
push eax
call sub.MSVCRT20.dll_strcpy
add esp, 8
mov eax, dword [0x42c328]
push eax
call fcn.0041a9bb
add esp, 4
jmp 0x40d4a7
push 0
mov eax, dword [0x42c328]
push eax
mov eax, dword [0x42b470]
push eax
call fcn.0041eba2
add esp, 0xc
push str.ARJTEMP.__02d
mov eax, dword [0x42c328]
push eax
call sub.MSVCRT20.dll_strcat
add esp, 8
mov eax, dword [0x42c328]
push eax
call fcn.004169a2
add esp, 4
push 0x42f0a8
mov eax, dword [0x42c328]
push eax
call fcn.00416476
add esp, 8
mov dword [0x42b180], eax
mov dword [0x42c0f4], 0
mov eax, dword [0x42b06c]
push eax
push 0
push 0
mov eax, dword [0x42b180]
push eax
call dword [sym.imp.MSVCRT20.dll_setvbuf]
add esp, 0x10
mov eax, dword [0x42c328]
push eax
call fcn.0042069b
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [0x42c238]
cmp dword [ebp - 0x3c], eax
jae 0x40d58e
cmp dword [0x42c2f8], 0
jne 0x40d58e
cmp dword [0x42c134], 0
jne 0x40d58e
mov eax, dword [0x42c328]
push eax
push 0x431958
push 0x22
call fcn.004093aa
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push eax
push 0x42fe18
mov eax, dword [0x42b460]
push eax
call fcn.004083b8
add esp, 0xc
mov eax, dword [0x42b460]
push eax
push 4
push 0
call fcn.004172d5
add esp, 0xc
test eax, eax
jne 0x40d58e
call fcn.004161c5
xor eax, eax
jmp 0x40e5b1
cmp dword [0x42cca4], 1
jne 0x40d5d6
cmp dword [0x42b5c0], 0
je 0x40d5d6
cmp dword [0x42c310], 0
jne 0x40d5bf
call fcn.0042429b
jmp 0x40d5d1
cmp dword [0x42b404], 0
je 0x40d5d1
call fcn.004242b0
jmp 0x40d5ff
cmp dword [0x42cca4], 1
jne 0x40d5ed
call fcn.00424271
jmp 0x40d5ff
cmp dword [0x42cca4], 2
jne 0x40d5ff
call fcn.00424286
mov dword [ebp - 0x50], 0
cmp dword [0x42c3b4], 0
jne 0x40d64d
mov dword [ebp - 0x50], 1
call fcn.004108a7
cmp dword [0x42c2ec], 0
je 0x40d648
cmp dword [0x42b5e0], 0
je 0x40d648
push 0x42f228
push 0
call fcn.004093aa
add esp, 8
jmp 0x40dc2b
mov eax, dword [0x42c3b4]
push eax
push 0
call fcn.0040ef95
add esp, 8
mov dword [0x42b134], eax
cmp dword [0x42b134], 0
jge 0x40d6d7
mov eax, dword [0x42b470]
push eax
push 0x430a98
push 4
call fcn.004093aa
add esp, 0xc
push 0x4326d0
push 0
call fcn.004093aa
add esp, 8
mov eax, dword [0x42c3b4]
push eax
call fcn.00416440
add esp, 4
mov dword [0x42c3b4], 0
cmp dword [0x42b454], 0
jne 0x40d6c2
mov dword [0x42b454], 9
inc dword [0x42cc98]
call fcn.004161c5
mov eax, 9
jmp 0x40e5b1
cmp dword [0x42b134], 0
jne 0x40d70c
cmp dword [0x42c0f0], 0
je 0x40d70c
cmp dword [0x42cca4], 0
je 0x40d70c
mov eax, dword [0x42b134]
push eax
call fcn.0041b033
add esp, 4
cmp dword [0x42b134], 0x1388
jle 0x40d7b8
push 0
mov eax, dword [0x42b134]
push eax
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
push 1
push 0xfffffffffffffff8
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov eax, dword [0x42c3b4]
push eax
call fcn.00416661
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [0x42c3b4]
push eax
call fcn.00416661
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [0x42b458], eax
cmp dword [ebp - 0x24], 0xabc0
je 0x40d794
cmp dword [ebp - 0x24], 0x1234
je 0x40d794
mov dword [0x42b458], 0
cmp dword [0x42b458], 1
jl 0x40d7ae
cmp dword [0x42b458], 3
jle 0x40d7b8
mov dword [0x42b458], 0
push 0
mov eax, dword [0x42b134]
push eax
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov eax, dword [0x42b470]
push eax
mov eax, dword [0x42c3b4]
push eax
push 1
call fcn.0040f1b9
add esp, 0xc
test eax, eax
jne 0x40d7fa
push 0x42f6f0
call fcn.004081d7
add esp, 4
cmp dword [0x42b404], 0
je 0x40d80f
call fcn.0040c8f6
mov dword [ebp - 0x20], eax
cmp dword [0x42c0f0], 0
je 0x40d86f
cmp dword [0x42c0ac], 0
je 0x40d86f
cmp dword [0x42b5c0], 0
jne 0x40d86f
push 0x4313f8
push 0
call fcn.004093aa
add esp, 8
mov eax, dword [0x42c3b4]
push eax
call fcn.00416440
add esp, 4
mov dword [0x42c3b4], 0
inc dword [0x42cc98]
call fcn.004161c5
xor eax, eax
jmp 0x40e5b1
cmp dword [0x42c0f0], 0
je 0x40d95c
cmp dword [ebp + 8], 0x47
je 0x40d893
cmp dword [0x42c0f8], 0
je 0x40d95c
xor eax, eax
mov al, byte [0x42c1e4]
cmp eax, 0xa
jl 0x40d8ff
cmp dword [0x42b524], 0
jne 0x40d8ff
cmp dword [0x42c190], 0
jne 0x40d8ff
mov dword [0x42b524], 1
cmp dword [0x42c3d0], 1
jne 0x40d8e3
mov dword [0x42b524], 0x10
jmp 0x40d8fa
cmp dword [0x42c3d0], 2
jne 0x40d8fa
mov dword [0x42b524], 4
jmp 0x40d95c
cmp dword [0x42c3d0], 1
jne 0x40d926
cmp dword [0x42b524], 2
je 0x40d95c
cmp dword [0x42b524], 3
je 0x40d95c
cmp dword [0x42c3d0], 2
jne 0x40d940
cmp dword [0x42b524], 4
je 0x40d95c
cmp dword [0x42c3d0], 0
je 0x40d95c
push 0
push 0x430298
call fcn.004081d7
add esp, 8
cmp dword [0x42c2ec], 0
jne 0x40d99d
cmp dword [0x42cca4], 0
je 0x40d99d
cmp dword [0x42b5c0], 0
jne 0x40d99d
cmp dword [0x42b524], 1
jl 0x40d99d
push 0x42f818
call fcn.004081d7
add esp, 4
cmp dword [ebp + 8], 0x59
je 0x40d9ce
cmp dword [0x42b5f4], 0
je 0x40d9ce
cmp dword [0x42cbf8], 0
jne 0x40d9ce
push 0x42f5e0
call fcn.004081d7
add esp, 4
cmp dword [ebp + 8], 0x44
jne 0x40d9ff
cmp dword [0x42c158], 0xa
jne 0x40d9ff
cmp dword [0x42cbf8], 0
je 0x40d9ff
push 0x42f818
call fcn.004081d7
add esp, 4
cmp dword [ebp + 8], 0x44
jne 0x40da33
cmp dword [0x42c380], 0x7ffc
jne 0x40da33
cmp dword [0x42cbf8], 0
jne 0x40da33
push 0x42f5e0
call fcn.004081d7
add esp, 4
cmp dword [0x42b390], 2
jne 0x40da5c
xor eax, eax
mov al, byte [0x42c210]
test al, 0x40
je 0x40da5c
push 0x42f4b8
call fcn.004081d7
add esp, 4
cmp dword [0x42c3ac], 0
je 0x40daaa
cmp dword [0x42b5c0], 0
jne 0x40da83
cmp dword [0x42c0ac], 0
je 0x40daaa
cmp dword [0x42c258], 0
jne 0x40daaa
cmp dword [0x42b08c], 0
je 0x40daaa
push 0x430e98
call fcn.004081d7
add esp, 4
push 0x42c340
lea eax, [ebp - 0x18]
push eax
call fcn.00423e43
add esp, 8
lea eax, [ebp - 0x18]
push eax
push 0x42f280
push 0x22
call fcn.004093aa
add esp, 0xc
xor eax, eax
mov al, byte [0x42c1e4]
cmp eax, 6
jl 0x40db3d
mov eax, dword [0x42c0a8]
push eax
xor eax, eax
mov al, byte [0x42c0b0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00423cdf
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00423e43
add esp, 8
lea eax, [ebp - 0x18]
push eax
push 0x42f298
push 0x22
call fcn.004093aa
add esp, 0xc
cmp dword [0x42cbf8], 0
je 0x40db3d
mov eax, dword [0x42cbf8]
push eax
push 0x42f590
push 2
call fcn.004093aa
add esp, 0xc
push 0x4326d0
push 0
call fcn.004093aa
add esp, 8
cmp dword [0x42c0f0], 0
je 0x40db66
cmp dword [0x42b530], 0
jne 0x40dbbc
cmp dword [ebp + 8], 0x43
jne 0x40db7d
cmp dword [0x42cc94], 0
je 0x40dbbc
cmp dword [ebp + 8], 0x4c
jne 0x40dba1
cmp dword [0x42c214], 0
je 0x40dba1
cmp dword [0x42b12c], 2
je 0x40dbbc
cmp dword [0x42c358], 2
je 0x40dbbc
mov eax, dword [0x42b420]
push eax
call fcn.004174f3
add esp, 4
mov eax, dword [0x42b5ac]
push eax
call fcn.004212c8
add esp, 4
cmp dword [0x42b5ac], 0
je 0x40dbe6
push 0x42f228
push 0
call fcn.004093aa
add esp, 8
cmp dword [ebp + 8], 0x4c
jne 0x40dc2b
cmp dword [0x42c144], 0
je 0x40dc2b
push 0x6c
mov eax, dword [0x42c3a8]
push eax
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
test eax, eax
je 0x40dc2b
mov eax, dword [0x42b524]
push eax
push 0x431d88
push 0x22
call fcn.004093aa
add esp, 0xc
cmp dword [0x42b5c0], 0
je 0x40dc51
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT20.dll_strtol]
add esp, 0xc
inc eax
mov dword [0x42b830], eax
cmp dword [0x42c0f0], 0
je 0x40e1ff
mov eax, dword [0x42b180]
push eax
call dword [sym.imp.MSVCRT20.dll_ftell]
add esp, 4
mov dword [0x42b134], eax
cmp dword [0x42c18c], 0
je 0x40dcd1
push 0x42f468
push 0
call fcn.004093aa
add esp, 8
push 0x4326d0
push 0
call fcn.004093aa
add esp, 8
mov eax, dword [0x42c3b4]
push eax
call fcn.00416440
add esp, 4
mov dword [0x42c3b4], 0
inc dword [0x42cc98]
mov dword [0x42b454], 4
call fcn.004161c5
xor eax, eax
jmp 0x40e5b1
cmp dword [0x42cc8c], 4
je 0x40dd03
lea eax, [ebp - 0x58]
push eax
call fcn.004196e9
add esp, 4
xor eax, eax
mov al, byte [0x42c0b0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00423d5d
add esp, 8
mov dword [0x42c0a8], eax
cmp dword [0x42b618], 0
je 0x40dd2a
xor eax, eax
mov al, byte [0x42c0b0]
push eax
push 0x42b618
call fcn.00423d5d
add esp, 8
mov dword [0x42c0a8], eax
cmp dword [0x42c0f8], 0
je 0x40dd87
push 0
call fcn.00426b45
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [0x42b524], 0x10
jne 0x40dd59
mov eax, dword [ebp - 0x34]
mov dword [0x42b524], eax
cmp dword [0x42b524], 0
je 0x40dd87
mov eax, dword [0x42b524]
cmp dword [ebp - 0x34], eax
je 0x40dd87
mov eax, dword [0x42b524]
push eax
push 0x430298
call fcn.004081d7
add esp, 8
mov al, byte [0x42b524]
mov byte [0x42c0ec], al
cmp dword [0x42c3ac], 0
je 0x40ddcd
mov eax, dword [0x42c3ac]
mov dword [0x42c258], eax
cmp dword [0x42b534], 0
jne 0x40ddcd
mov eax, dword [0x42c258]
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov dword [0x42b534], eax
cmp dword [0x42b458], 0
je 0x40deca
cmp dword [0x42b5f4], 0
je 0x40ddf4
push 0x4310f0
call fcn.004081d7
add esp, 4
cmp dword [0x42c1a4], 5
je 0x40de0e
cmp dword [0x42b444], 4
jne 0x40de1b
push 0x4311d0
call fcn.004081d7
add esp, 4
cmp dword [0x42b458], 2
jg 0x40de42
cmp dword [0x42b5c0], 0
je 0x40de42
push 0x42f818
call fcn.004081d7
add esp, 4
cmp dword [0x42b458], 1
jne 0x40de76
cmp dword [0x42b538], 0
jne 0x40de69
cmp dword [0x42cc70], 0
je 0x40de76
push 0x431610
call fcn.004081d7
add esp, 4
cmp dword [0x42b458], 1
jne 0x40de9d
cmp dword [0x42c0f8], 0
je 0x40de9d
push 0x431168
call fcn.004081d7
add esp, 4
cmp dword [0x42b458], 2
jne 0x40deca
cmp dword [0x42b524], 1
jle 0x40deca
mov eax, dword [0x42b524]
push eax
push 0x430298
call fcn.004081d7
add esp, 8
cmp dword [ebp + 8], 0x59
jne 0x40e09b
cmp dword [0x42b5f4], 1
jne 0x40df08
cmp dword [0x42cbf8], 0
je 0x40df08
cmp dword [0x42b5c0], 0
jne 0x40df08
push 0x42f608
call fcn.004081d7
add esp, 4
cmp dword [0x42b5f4], 2
jne 0x40df2f
cmp dword [0x42cbf8], 0
jne 0x40df2f
push 0x42f5e0
call fcn.004081d7
add esp, 4
cmp dword [0x42b5f4], 1
jne 0x40df6f
cmp dword [0x42cbf8], 0
jne 0x40df6f
mov byte [0x42cc08], 1
mov dword [0x42cbf8], 1
mov dword [0x42c380], 0x7ffd
inc dword [0x42b480]
jmp 0x40dfaa
cmp dword [0x42b5f4], 2
jne 0x40dfaa
cmp dword [0x42cbf8], 0
je 0x40dfaa
mov byte [0x42cc08], 0
mov dword [0x42cbf8], 0
mov dword [0x42c380], 0x7ffd
inc dword [0x42b480]
cmp dword [0x42c0f8], 0
je 0x40dfe3
mov byte [0x42c0ec], 0
xor eax, eax
mov al, byte [0x42c210]
and al, 0xfe
mov byte [0x42c210], al
cmp dword [0x42c3a4], 0
jne 0x40dfe3
mov dword [0x42c3a4], 1
cmp dword [0x42b5e0], 2
jne 0x40e066
xor eax, eax
mov al, byte [0x42c1e4]
cmp eax, 9
je 0x40e00f
xor eax, eax
mov al, byte [0x42c210]
test al, 2
je 0x40e052
push 0x42f240
push 4
call fcn.004093aa
add esp, 8
mov eax, dword [0x42c3b4]
push eax
call fcn.00416440
add esp, 4
mov dword [0x42c3b4], 0
inc dword [0x42cc98]
mov dword [0x42b454], 1
call fcn.004161c5
xor eax, eax
jmp 0x40e5b1
xor eax, eax
mov al, byte [0x42c210]
or al, 2
mov byte [0x42c210], al
inc dword [0x42b480]
cmp dword [0x42c3ac], 0
je 0x40e09b
mov dword [0x42c258], 0
mov dword [0x42b534], 0
xor eax, eax
mov al, byte [0x42c210]
and al, 0xf7
mov byte [0x42c210], al
inc dword [0x42b480]
cmp dword [0x42b410], 0
je 0x40e0c3
cmp dword [0x42b5c0], 0
je 0x40e0c3
xor eax, eax
mov al, byte [0x42c210]
or al, 4
mov byte [0x42c210], al
xor eax, eax
mov al, byte [0x42c210]
test al, 0x80
je 0x40e0dc
mov dword [0x42cc80], 1
cmp dword [0x42b410], 0
je 0x40e11d
cmp dword [0x42cc80], 0
jne 0x40e11d
cmp dword [0x42cc5c], 4
je 0x40e110
cmp dword [0x42cc5c], 2
jne 0x40e11d
push 0x42ffd8
call fcn.004081d7
add esp, 4
xor eax, eax
mov al, byte [0x42c210]
test al, 2
je 0x40e136
mov dword [0x42b5ac], 1
cmp dword [0x42b410], 0
je 0x40e16a
cmp dword [0x42b5ac], 0
jne 0x40e16a
cmp dword [0x42b5e0], 1
jne 0x40e16a
push 0x430720
call fcn.004081d7
add esp, 4
cmp dword [0x42c2ec], 0
jne 0x40e191
cmp dword [0x42b5ac], 0
je 0x40e191
push 0x430720
call fcn.004081d7
add esp, 4
push 1
call fcn.0040fe60
add esp, 4
cmp dword [ebp + 8], 0x43
jne 0x40e1b2
cmp dword [0x42cc94], 0
je 0x40e1bf
cmp dword [0x42b530], 0
je 0x40e1e1
mov eax, dword [0x42b470]
push eax
mov eax, dword [0x42b5b0]
push eax
call fcn.00410640
add esp, 8
test eax, eax
je 0x40e1e1
inc dword [0x42b480]
call fcn.004102f7
mov eax, dword [0x42b180]
push eax
call dword [sym.imp.MSVCRT20.dll_ftell]
add esp, 4
mov dword [0x42b090], eax
jmp 0x40e512
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_ftell]
add esp, 4
mov dword [0x42b090], eax
cmp dword [0x42c18c], 0
je 0x40e325
cmp dword [0x42b390], 1
je 0x40e325
cmp dword [0x42c324], 2
jbe 0x40e264
mov eax, dword [0x42c324]
push eax
push 0x42f560
push 0x22
call fcn.004093aa
add esp, 0xc
mov eax, dword [0x42b460]
push eax
push 0
call fcn.004093aa
add esp, 8
jmp 0x40e325
push 0x42f530
push 0
call fcn.004093aa
add esp, 8
cmp dword [0x42b078], 0
jne 0x40e28f
push 0x51
call fcn.0041a3d0
add esp, 4
mov dword [0x42b078], eax
push 0x3fd
mov eax, dword [0x42b078]
push eax
mov eax, dword [0x42cca0]
push eax
mov eax, dword [0x42c3b4]
push eax
call fcn.00425640
add esp, 0x10
test eax, eax
je 0x40e2f5
push 5
call fcn.004203a6
add esp, 4
push str._n
push 0
call fcn.004093aa
add esp, 8
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_fclose]
add esp, 4
mov dword [0x42c3b4], 0
inc dword [0x42cc98]
xor eax, eax
jmp 0x40e5b1
push 0x42f4a0
push 0
call fcn.004093aa
add esp, 8
push 0
mov eax, dword [0x42b090]
push eax
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov dword [0x42c18c], 2
cmp dword [0x42c0f8], 0
je 0x40e399
push 0
call fcn.00426b45
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
je 0x40e353
cmp dword [ebp - 0x34], 3
jne 0x40e36d
cmp dword [0x42b524], 2
je 0x40e399
cmp dword [0x42b524], 3
je 0x40e399
cmp dword [0x42b524], 0
je 0x40e399
mov eax, dword [0x42b524]
cmp dword [ebp - 0x34], eax
je 0x40e399
mov eax, dword [ebp - 0x34]
push eax
push 0x430298
call fcn.004081d7
add esp, 8
cmp dword [0x42c3a4], 1
jne 0x40e41c
mov dword [0x42b434], 0x54
mov eax, dword [0x42b470]
push eax
mov eax, dword [0x42c3b4]
push eax
push 0
call fcn.0040f1b9
add esp, 0xc
test eax, eax
je 0x40e3dd
push 0x54
call fcn.00413f40
add esp, 4
jmp 0x40e3b0
mov eax, dword [ebp + 8]
mov dword [0x42b434], eax
cmp dword [0x42cc98], 0
je 0x40e405
mov eax, dword [0x42cc98]
push eax
push 0x4300c8
call fcn.004081d7
add esp, 8
push 0
mov eax, dword [0x42b090]
push eax
mov eax, dword [0x42c3b4]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
cmp dword [ebp + 8], 0x45
jne 0x40e512
cmp dword [0x42b530], 0
je 0x40e512
mov eax, dword [0x42b5b0]
movsx eax, byte [eax]
test eax, eax
je 0x40e512
mov eax, dword [0x42b5b0]
push eax
push 0x430170
push 0x22
call fcn.004093aa
add esp, 0xc
push 0x42f094
mov eax, dword [0x42b5b0]
push eax
call fcn.00416513
add esp, 8
mov dword [ebp - 0x60], eax
mov eax, dword [0x42b854]
movsx eax, byte [eax]
test eax, eax
jne 0x40e4bf
push 0x4300c0
mov eax, dword [0x42c244]
push eax
call sub.MSVCRT20.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x42c244]
push eax
call dword [sym.imp.MSVCRT20.dll_fputs]
add esp, 8
cmp eax, 0xffffffff
jne 0x40e4ba
push 0x42fa18
call fcn.004081d7
add esp, 4
jmp 0x40e4ff
mov eax, dword [0x42b854]
push eax
call sub.MSVCRT20.dll_strlen
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 1
mov eax, dword [0x42b854]
push eax
call dword [sym.imp.MSVCRT20.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x2c]
je 0x40e4ff
push 0x42fa18
call fcn.004081d7
add esp, 4
inc dword [0x42b480]
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT20.dll_fclose]
add esp, 4
push 0x76
mov eax, dword [0x42c3a8]
push eax
call dword [sym.imp.MSVCRT20.dll_strchr]
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40e550
mov eax, dword [0x42b094]
push eax
mov eax, dword [0x42b06c]
push eax
push 0x100000
push str.Coreleft___5u__Tbuf___5u__Vbuf___5u_n
push 0x22
call fcn.004093aa
add esp, 0x14
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040a521
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0040b317
add esp, 4
cmp dword [0x42b088], 0
je 0x40e592
mov eax, dword [0x42b088]
push eax
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
mov dword [0x42b088], 0
mov eax, dword [0x42c3b4]
push eax
call fcn.00416440
add esp, 4
mov dword [0x42c3b4], 0
xor eax, eax
jmp 0x40e5b1
pop edi
pop esi
pop ebx
leave
ret