Function at 0x40e650
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
mov dword [0x51934c], 0x4c5ea4
mov dword [0x519350], 0x4c5ea4
test esi, esi
je 0x40e730
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], 0x4c5f4f
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [esp + 0x34], 0
test eax, eax
mov dword [0x519354], eax
je 0x40e700
mov eax, dword [0x51e2f8]
test al, 4
je 0x40e6bf
mov dword [0x4c00c0], 0
test al, 0x80
jne 0x40ea12
test al, 1
jne 0x40e750
test al, 2
jne 0x40ec36
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x40ebf0
mov eax, dword [0x519358]
test eax, eax
je 0x40e6f4
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004a2ab0
mov edx, dword [esp + 0xa0]
mov dword [esp], str.cant_open__s:__s
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00411f40
nop
lea esi, [esi]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x34], 1
add eax, 0x20
mov dword [0x519354], eax
jmp 0x40e6ac
mov eax, dword [0x4c00ac]
mov dword [esp], eax
call fcn.004a0a50
mov dword [esp + 0x30], eax
mov eax, dword [0x4c00b8]
lea edx, [eax + eax*8]
mov eax, dword [0x4c00b4]
lea eax, [eax + eax*8]
imul eax, dword [0x4c00b0]
lea eax, [edx + eax + 0x14]
mov dword [esp], eax
call fcn.004a0a50
mov dword [0x51935c], 1
mov dword [0x51936c], eax
mov eax, dword [0x519344]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x40e8ab
mov dword [esp + 0x28], 0
mov edi, 1
mov eax, dword [0x4c00ac]
cmp dword [0x4c00c4], eax
cmovle eax, dword [0x4c00c4]
cmp dword [ebx + 0x24], 6
mov esi, dword [ebx + 4]
mov dword [esp + 0x2c], eax
jbe case.default.0x40e7f3
mov dword [esp + 8], str.listing_listing
mov dword [esp + 4], 0x4bd
mov dword [esp], str._home_build_work_GCC_4_8_build_src_binutils_gas_listing.c
call fcn.004121e0
nop
lea esi, [esi]
mov edx, dword [ebx + 0x24]
jmp dword [edx*4 + 0x4c615c]
sub edi, 1
test edi, edi
jle 0x40e96f
cmp edx, 4
mov eax, edx
je 0x40e81b
test edi, edi
jne 0x40e821
cmp edx, 5
jne 0x40e821
add esi, 1
add edi, 1
test edi, edi
jle 0x40e893
mov ebp, dword [ebx + 0x14]
test ebp, ebp
je 0x40ef30
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x40e844
test byte [0x51e2f8], 8
jne 0x40ef45
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x40e901
test byte [0x51e2f8], 0x10
je 0x40e9db
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x10]
test ecx, ecx
je 0x40e9d2
mov dword [0x519370], 1
mov dword [esp], edx
call sub.msvcrt.dll_free
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x28], ebp
cmp eax, 6
je 0x40ebe0
cmp eax, 5
jne 0x40e8a0
cmp edi, 1
mov al, 0
cmove edi, eax
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x40e7b0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [0x51936c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [0x51e2f8]
mov dword [0x51936c], 0
jmp 0x40e6cf
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
call fcn.0040e1a0
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x40e901
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0xc]
mov eax, ebx
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
call fcn.0040dca0
mov eax, dword [ebx + 8]
cmp esi, dword [eax + 0xc]
jbe 0x40e883
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x40e883
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
call fcn.0040dff0
mov ecx, 0xffffffff
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], esi
jae 0x40ea04
test byte [0x51e2f8], 0x10
je 0x40e8ed
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x10]
test edx, edx
je 0x40e8d8
mov eax, dword [ebx + 8]
mov dword [0x519370], 1
cmp esi, dword [eax + 0xc]
ja 0x40e90d
jmp 0x40e883
test edi, edi
jne case.0x40e7f3.0
sub esi, 1
mov eax, dword [ebx + 8]
cmp esi, dword [eax + 0xc]
jbe 0x40e80b
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x40e80b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
call fcn.0040dff0
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], esi
jae 0x40e9a2
mov edx, dword [eax + 0x10]
test edx, edx
je 0x40e986
mov edx, dword [ebx + 0x24]
jmp 0x40e80b
sub esi, 1
jmp case.0x40e7f3.0
mov eax, dword [ebx + 0x28]
mov dword [0x51934c], eax
jmp case.0x40e7f3.0
mov eax, dword [ebx + 0x28]
mov dword [0x519350], eax
jmp case.0x40e7f3.0
call fcn.0040e1a0
test eax, eax
jne 0x40e9fc
mov eax, ebx
call fcn.0040d860
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x40e9f2
mov edx, dword [ebx + 4]
mov dword [esp], eax
mov eax, ebx
call fcn.0040dca0
mov edx, dword [ebx + 0xc]
jmp 0x40e874
mov eax, ebx
call fcn.0040d860
mov ecx, eax
jmp 0x40e93a
xor eax, eax
mov dword [0x51935c], 1
call fcn.0040db10
mov eax, dword [0x519354]
mov dword [esp + 0x10], 0x4c5f64
mov dword [esp + 0xc], str.arm_none_eabi
mov dword [esp + 8], str.2.23.2
mov dword [esp + 4], str._GNU_assembler_version__s___s__n_t_using_BFD_version__s.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x519354]
mov dword [esp + 8], 0x13
mov dword [esp + 4], 1
mov dword [esp], str._n_options_passed_t:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp + 4]
test ebx, ebx
je 0x40eac4
add ebp, 4
mov edx, 3
mov dword [esp + 0x2c], 0x13
jmp 0x40ea9a
mov ebx, dword [ebp + 4]
add ebp, 4
test ebx, ebx
je 0x40eac4
cmp byte [ebx], 0x2d
jne 0x40ea90
mov edi, 0x4c5fff
mov esi, ebx
mov ecx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40eb80
mov ebx, dword [ebp + 4]
test ebx, ebx
je 0x40eac4
mov ebx, dword [ebp + 8]
add ebp, 4
add ebp, 4
test ebx, ebx
jne 0x40ea9a
mov eax, dword [0x519360]
lea ebx, [esp + 0x5e]
mov dword [esp + 4], str._n_input_file_____t:__s
mov dword [esp + 8], eax
mov eax, dword [0x519354]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x51e334]
mov dword [esp + 4], str._n_output_file____t:__s
mov dword [esp + 8], eax
mov eax, dword [0x519354]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x519354]
mov dword [esp + 8], str.arm_none_eabi
mov dword [esp + 4], str._n_target_________t:__s
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x7c]
mov dword [esp], eax
call sub.msvcrt.dll_localtime
mov dword [esp + 8], str._Y__m__dT_H:_M:_S.000_z
mov dword [esp + 4], 0x1e
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_strftime
mov eax, dword [0x519354]
mov dword [esp + 8], ebx
mov dword [esp + 4], str._n_time_stamp_____t:__s_n_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x51e2f8]
jmp 0x40e6c7
mov edi, 0x4c6002
mov esi, ebx
mov ecx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40ea90
mov dword [esp], ebx
mov dword [esp + 0x20], edx
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
add dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [0x4c00c4]
mov esi, eax
jge 0x40ee62
mov eax, dword [0x519354]
mov dword [esp + 4], 0x4c6005
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebx, dword [ebp + 4]
mov edx, dword [esp + 0x20]
jmp 0x40ea93
mov dword [0x51935c], 1
jmp 0x40e8a0
mov eax, dword [0x519354]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
cmp eax, 0xffffffff
jne 0x40e6e3
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004a2ab0
mov edx, dword [esp + 0xa0]
mov dword [esp], 0x4c6146
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00411f40
jmp 0x40e6e3
xor eax, eax
mov dword [0x51935c], 1
call fcn.0040db10
mov ebx, dword [0x51e5d4]
test ebx, ebx
je 0x40eec1
xor edi, edi
lea esi, [esp + 0x5e]
jmp 0x40ec9e
mov dword [esp], ebx
call fcn.0041c200
cmp eax, dword [0x51e348]
je 0x40ecbc
mov dword [esp], ebx
call fcn.0041c200
cmp eax, dword [0x51e328]
je 0x40ecbc
mov dword [esp], ebx
call fcn.0041ea00
test eax, eax
je 0x40ed70
mov dword [esp], ebx
call fcn.0041e3e0
test eax, eax
mov ebx, eax
je 0x40ecd9
mov dword [esp], ebx
call fcn.0041c200
cmp eax, 0x4c0cf0
je 0x40ecbc
mov dword [esp], ebx
call fcn.0041c200
cmp eax, 0x4c0c48
jne 0x40ec60
mov dword [esp], ebx
call fcn.0041c200
cmp eax, 0x4c0cf0
je 0x40ec80
mov dword [esp], ebx
call fcn.0041e3e0
test eax, eax
mov ebx, eax
jne 0x40ec9e
test edi, edi
je 0x40eec1
mov dword [esp + 4], 0x4c5ee4
mov dword [esp], 0
call fcn.0040dc60
mov ebx, dword [0x51e5d4]
test ebx, ebx
je 0x40ee49
xor esi, esi
jmp 0x40ed19
mov dword [esp], ebx
call fcn.0041e3e0
test eax, eax
mov ebx, eax
je 0x40ee41
mov dword [esp], ebx
call fcn.0041c1d0
test eax, eax
je 0x40ed07
mov dword [esp], ebx
call fcn.0041c1d0
cmp byte [eax], 0
je 0x40ed07
mov dword [esp], ebx
call fcn.0041c200
cmp eax, 0x4c0c48
jne 0x40ed07
test esi, esi
je 0x40f1fe
mov dword [esp], ebx
mov esi, 1
call fcn.0041c1d0
mov dword [esp + 4], 0x4c5ea0
mov dword [esp], 0
mov dword [esp + 8], eax
call fcn.0040dc60
jmp 0x40ed07
mov dword [esp], ebx
call fcn.0041c1d0
test eax, eax
je 0x40ec90
mov dword [esp], ebx
call fcn.0041d3c0
mov dword [esp + 4], 0x4c60d1
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
test edi, edi
je 0x40ee90
mov dword [esp], ebx
call fcn.0041e6a0
test eax, eax
je 0x40eef2
mov dword [esp], ebx
call fcn.0041e6a0
mov edi, dword [eax + 0x28]
test edi, edi
je 0x40eef2
mov dword [esp], ebx
call fcn.0041c1d0
mov dword [esp], ebx
mov dword [esp + 0x20], eax
call fcn.0041c200
mov ebp, dword [eax]
mov dword [esp], ebx
call fcn.0041e6a0
mov eax, dword [eax + 0x28]
mov edi, dword [eax + 4]
mov dword [esp], ebx
call fcn.0041e6a0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 4], str._20s:__5d___s:_s__s_n
mov dword [esp + 8], eax
mov eax, dword [0x519354]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
xor eax, eax
mov edi, 1
add dword [0x519364], 1
call fcn.0040db10
jmp 0x40ec90
test esi, esi
jne 0x40e6d7
mov dword [esp + 4], str.NO_UNDEFINED_SYMBOLS_n
mov dword [esp], 0
call fcn.0040dc60
jmp 0x40e6d7
mov eax, dword [0x519354]
mov dword [esp + 0x20], edx
mov dword [esp + 4], str._n_t_s
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebx, dword [ebp + 4]
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x20]
jmp 0x40ea93
mov eax, dword [0x519354]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], str.DEFINED_SYMBOLS_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add dword [0x519364], 1
jmp 0x40eda4
mov eax, dword [0x519354]
mov dword [esp + 8], 0x13
mov dword [esp + 4], 1
mov dword [esp], str.NO_DEFINED_SYMBOLS_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add dword [0x519364], 1
jmp 0x40ece1
mov dword [esp], ebx
call fcn.0041c1d0
mov dword [esp], ebx
mov edi, eax
call fcn.0041c200
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov eax, dword [eax]
mov dword [esp + 4], str._33s:_s__s_n
mov dword [esp + 8], eax
mov eax, dword [0x519354]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x40ee29
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40e844
mov ebp, dword [esp + 0x28]
jmp 0x40e830
mov eax, dword [ebp + 0xc]
cmp edx, eax
jae 0x40f138
mov eax, 0x519380
xor ecx, ecx
cmp ebp, dword [eax]
je 0x40f32b
add ecx, 1
add eax, 0x6c
cmp ecx, 3
jne 0x40ef57
mov eax, dword [0x5194c4]
imul ecx, eax, 0x6c
add eax, 1
mov dword [esp + 0x3c], ecx
add ecx, 0x519380
cmp eax, 3
mov dword [esp + 0x28], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [0x5194c4], eax
mov eax, ebp
mov dword [ecx + 0x519380], ebp
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov byte [ecx + 8], 0
add ecx, 8
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40f303
cmp edx, dword [ebp + 0xc]
mov eax, ebp
jae 0x40f303
mov ecx, dword [0x5194c8]
mov eax, dword [0x519358]
test ecx, ecx
je 0x40efdf
cmp ebp, ecx
je 0x40f061
test eax, eax
je 0x40f00b
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [0x519358]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov edx, dword [esp + 0x20]
mov dword [esp + 4], 0x4c5ee6
mov eax, dword [ebp + 4]
mov dword [0x5194c8], ebp
mov dword [esp + 0x20], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edx, dword [esp + 0x20]
test eax, eax
mov dword [0x519358], eax
je 0x40f3e6
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40f061
mov dword [esp + 0x20], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [0x519358]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x4c], eax
mov eax, dword [0x519358]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov edx, dword [esp + 0x20]
cmp edx, 1
jbe 0x40f22e
mov dword [esp + 0x40], ebp
mov ebp, esi
mov esi, ebx
mov dword [esp + 0x38], 2
mov ebx, edx
lea esi, [esi]
mov eax, dword [0x519358]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xa
je 0x40f355
cmp eax, 0xffffffff
je 0x40f355
xor ecx, ecx
cmp eax, 0xd
mov edx, 1
jne 0x40f0b0
mov eax, dword [0x519358]
mov byte [esp + 0x20], dl
mov byte [esp + 0x24], cl
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
movzx edx, byte [esp + 0x20]
movzx ecx, byte [esp + 0x24]
cmp eax, 0xa
jne 0x40f374
cmp eax, 0xd
je 0x40f11e
test cl, cl
je 0x40f11e
mov edx, dword [0x519358]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_ungetc
mov eax, dword [esp + 0x38]
add eax, 1
cmp ebx, dword [esp + 0x38]
jbe 0x40f226
mov dword [esp + 0x38], eax
jmp 0x40f0b0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40e844
cmp edx, eax
jbe 0x40e844
mov dword [esp + 0x3c], edi
mov edi, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], esi
jmp 0x40f1be
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x40f182
mov edx, dword [0x5194c4]
mov ecx, 0
add edx, 1
cmp edx, 3
cmove edx, ecx
mov dword [0x5194c4], edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x519380]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], str._4u:__13s___s_n
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0040dc60
mov eax, dword [ebp + 0xc]
add dword [esp + 0x28], 1
cmp eax, dword [edi + 0x18]
jae 0x40f217
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x40f217
imul esi, dword [0x5194c4], 0x6c
add eax, 1
lea ebx, [esi + 0x519380]
mov byte [ebx + 8], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov eax, 0x4c5ea4
mov dword [esi + 0x519380], ebp
test ecx, ecx
jne 0x40f160
mov ecx, dword [esp + 0x2c]
lea edx, [ebx + 8]
mov eax, ebp
call fcn.0040dff0
jmp 0x40f160
mov dword [esp + 4], str.UNDEFINED_SYMBOLS_n
mov dword [esp], 0
call fcn.0040dc60
jmp 0x40ed49
mov ebx, edi
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
jmp 0x40e844
mov ebx, esi
mov esi, ebp
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x519358]
add edx, 8
sub ecx, 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0x40f2b4
cmp eax, 0xa
je 0x40f2b4
cmp eax, 0xd
je 0x40f38d
xor edx, edx
mov dword [esp + 0x48], ebp
mov ebp, esi
mov esi, ebx
mov ebx, edx
jmp 0x40f284
cmp eax, 0xffffffff
je 0x40f2ac
cmp eax, 0xd
je 0x40f385
cmp ebx, dword [esp + 0x44]
jae 0x40f297
mov edx, dword [esp + 0x40]
mov byte [edx], al
add edx, 1
mov dword [esp + 0x40], edx
mov eax, dword [0x519358]
add ebx, 1
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xa
jne 0x40f276
mov ebx, esi
mov esi, ebp
mov ebp, dword [esp + 0x48]
cmp eax, 0xd
sete dl
cmp eax, 0xa
sete cl
je 0x40f394
test dl, dl
jne 0x40f394
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
mov byte [ecx], 0
mov dword [esp + 4], eax
mov eax, dword [0x519358]
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + 0x519380]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], str._4u:__13s___s_n
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.0040dc60
jmp 0x40e844
cmp edx, dword [eax + 4]
jne 0x40ef5f
imul ecx, ecx, 0x6c
lea edx, [ecx + 0x519380]
mov eax, dword [ecx + 0x519380]
mov ecx, edx
add ecx, 8
mov dword [esp + 0x28], edx
mov edx, dword [edx + 4]
mov dword [esp + 0x38], ecx
jmp 0x40f303
cmp eax, 0xd
sete dl
cmp eax, 0xa
sete cl
je 0x40f0db
test dl, dl
je 0x40f11e
jmp 0x40f0db
test dl, dl
je 0x40f103
lea esi, [esi]
jmp 0x40f10c
mov ebx, esi
mov esi, ebp
mov ebp, dword [esp + 0x48]
xor ecx, ecx
mov edx, 1
mov eax, dword [0x519358]
mov byte [esp + 0x20], dl
mov byte [esp + 0x24], cl
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
movzx edx, byte [esp + 0x20]
movzx ecx, byte [esp + 0x24]
cmp eax, 0xa
jne 0x40f3e0
cmp eax, 0xd
je 0x40f2ce
test cl, cl
je 0x40f2ce
mov edx, dword [0x519358]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_ungetc
jmp 0x40f2ce
test dl, dl
je 0x40f3b8
jmp 0x40f3c9
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x10], 1
mov eax, dword [edx + 0x519380]
mov edx, dword [ecx + 4]
add ecx, 8
mov dword [esp + 0x38], ecx
jmp 0x40f303