Function at 0x40e4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [ebp + 0xc]
mov dword [0x4fe2e8], 0x4a3ae8
mov dword [0x4fe2ec], 0x4a3ae8
mov edi, dword [ebp + 8]
test edi, edi
je 0x40e5b8
mov dword [esp + 4], 0x4a3b8d
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [0x4fe2f0], eax
test eax, eax
je 0x40e590
mov dword [ebp - 0x5c], 0
mov eax, dword [0x503f3c]
test al, 4
je 0x40e554
mov dword [0x49e0bc], 0
test al, 0x80
jne 0x40e87c
test al, 1
jne 0x40e5d4
test al, 2
jne 0x40ea94
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x40ea54
mov eax, dword [0x4fe2f4]
test eax, eax
je 0x40e584
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x8c
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00489fe0
mov dword [esp + 8], eax
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], str.cant_open__s:__s
call fcn.00411a80
nop
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [0x4fe2f0], eax
mov dword [ebp - 0x5c], 1
jmp 0x40e541
mov eax, dword [0x49e0b8]
mov dword [esp], eax
call fcn.00488278
mov dword [ebp - 0x50], eax
mov eax, dword [0x49e0b4]
imul eax, dword [0x49e0b0]
add eax, dword [0x49e0ac]
lea eax, [eax + eax*8 + 0x14]
mov dword [esp], eax
call fcn.00488278
mov dword [0x4fe308], eax
mov dword [0x4fe2f8], 1
mov eax, dword [0x4fe304]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x40e73d
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 1
nop
mov eax, dword [0x49e0b8]
mov edi, dword [0x49e0c0]
cmp edi, eax
jle 0x40e641
mov edi, eax
mov ebx, dword [esi + 4]
cmp dword [esi + 0x20], 6
jbe case.default.0x40e66b
mov dword [esp + 8], str.listing_listing
mov dword [esp + 4], 0x4a7
mov dword [esp], str..._.._gas_listing.c
call fcn.00411cb4
nop
mov edx, dword [esi + 0x20]
jmp dword [edx*4 + 0x4a3d58]
dec dword [ebp - 0x54]
nop
mov eax, dword [ebp - 0x54]
test eax, eax
jle 0x40e7e4
mov eax, edx
cmp edx, 4
je 0x40e823
cmp edx, 5
je 0x40ea40
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jle 0x40e729
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x40ed68
mov edx, dword [esi + 0x18]
test edx, edx
je 0x40e6c4
test byte [0x503f3c], 8
jne 0x40ed80
mov edx, dword [esi + 0xc]
test edx, edx
je 0x40e76c
test byte [0x503f3c], 0x10
je 0x40e6e4
mov eax, dword [esi + 0x28]
call fcn.0040dcf4
test eax, eax
jne 0x40e705
mov eax, esi
call fcn.0040db78
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x40e6fb
mov edx, dword [esi + 4]
mov dword [esp], eax
mov eax, esi
call fcn.0040de9c
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x20]
cmp eax, 6
je 0x40ea28
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], edx
cmp eax, 5
je 0x40e864
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x40e630
mov ecx, dword [ebp - 0x50]
mov dword [esp], ecx
call sub.msvcrt.dll_free
mov eax, dword [0x4fe308]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [0x4fe308], 0
mov eax, dword [0x503f3c]
jmp 0x40e560
mov eax, dword [esi + 8]
cmp ebx, dword [eax + 0xc]
jbe 0x40e717
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x40e717
mov ecx, edi
mov edx, dword [ebp - 0x50]
call fcn.0040d9b0
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0xc], ebx
jae 0x40e854
mov ecx, 0xffffffff
test byte [0x503f3c], 0x10
je 0x40e7b7
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x74], ecx
call fcn.0040dcf4
test eax, eax
mov ecx, dword [ebp - 0x74]
jne 0x40e76c
mov eax, dword [esi + 8]
mov edx, dword [eax + 0xc]
mov dword [esp], ecx
mov ecx, dword [ebp - 0x4c]
mov eax, esi
call fcn.0040de9c
mov eax, dword [esi + 8]
cmp ebx, dword [eax + 0xc]
ja 0x40e774
jmp 0x40e717
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jne case.0x40e66b.0
dec ebx
mov eax, dword [esi + 8]
cmp ebx, dword [eax + 0xc]
jbe 0x40e683
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x40e803
jmp 0x40e683
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x40e815
mov ecx, edi
mov edx, dword [ebp - 0x50]
call fcn.0040d9b0
mov eax, dword [esi + 8]
cmp dword [eax + 0xc], ebx
jb 0x40e7fc
mov edx, dword [esi + 0x20]
mov eax, edx
cmp edx, 4
jne 0x40e68e
inc ebx
inc dword [ebp - 0x54]
jmp 0x40e697
dec ebx
jmp case.0x40e66b.0
mov eax, dword [esi + 0x24]
mov dword [0x4fe2e8], eax
jmp case.0x40e66b.0
mov eax, dword [esi + 0x24]
mov dword [0x4fe2ec], eax
jmp case.0x40e66b.0
mov eax, esi
call fcn.0040db78
mov ecx, eax
jmp 0x40e799
cmp dword [ebp - 0x54], 1
jne 0x40e732
mov dword [ebp - 0x54], 0
jmp 0x40e732
mov dword [0x4fe2f8], 1
xor eax, eax
call fcn.0040d7ec
mov dword [esp + 0x10], 0x4a3ba4
mov dword [esp + 0xc], str.i686_pc_mingw32
mov dword [esp + 8], str.2.20.51
mov dword [esp + 4], str._GNU_assembler_version__s___s__n_t_using_BFD_version__s.
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
mov eax, dword [0x4fe2f0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x13
mov dword [esp + 4], 1
mov dword [esp], str._n_options_passed_t:
call sub.msvcrt.dll_fwrite
lea ebx, [esi + 4]
mov edx, dword [esi + 4]
test edx, edx
je 0x40e91f
mov dword [ebp - 0x50], 0x13
jmp 0x40e8fd
add ebx, 4
mov edx, dword [ebx]
test edx, edx
je 0x40e91f
cmp byte [edx], 0x2d
jne 0x40e8f4
mov edi, 0x4a3c27
mov esi, edx
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
jne 0x40e9d4
add ebx, 4
mov esi, dword [ebx]
test esi, esi
jne 0x40e8f4
mov eax, dword [0x4fe2e4]
mov dword [esp + 8], eax
mov dword [esp + 4], str._n_input_file_____t:__s
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
mov eax, dword [0x503f78]
mov dword [esp + 8], eax
mov dword [esp + 4], str._n_output_file____t:__s
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
mov dword [esp + 8], str.i686_pc_mingw32
mov dword [esp + 4], str._n_target_________t:__s
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_localtime
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._Y__m__dT_H:_M:_S.000_z
mov dword [esp + 4], 0x1e
lea ebx, [ebp - 0x3a]
mov dword [esp], ebx
call sub.msvcrt.dll_strftime
mov dword [esp + 8], ebx
mov dword [esp + 4], str._n_time_stamp_____t:__s_n_n
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
mov eax, dword [0x503f3c]
jmp 0x40e55c
mov edi, 0x4a3c2a
mov esi, edx
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
je 0x40e8f4
xor eax, eax
mov ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
lea esi, [ecx - 1]
add dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [0x49e0c0]
jge 0x40ecc8
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4a3c2d
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
jmp 0x40e8f4
mov dword [0x4fe2f8], 1
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
jmp 0x40e732
mov edx, dword [ebp - 0x54]
test edx, edx
jne 0x40e697
inc ebx
inc dword [ebp - 0x54]
jmp 0x40e697
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
inc eax
jne 0x40e573
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00489fe0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x4a3d45
call fcn.00411a80
jmp 0x40e573
mov dword [0x4fe2f8], 1
xor eax, eax
call fcn.0040d7ec
mov ebx, dword [0x5041c8]
test ebx, ebx
je 0x40ed0c
xor edi, edi
lea esi, [ebp - 0x3a]
jmp 0x40eafa
mov dword [esp], ebx
call fcn.0041a840
cmp eax, dword [0x503f8c]
je 0x40eb18
mov dword [esp], ebx
call fcn.0041a840
cmp eax, dword [0x503f6c]
je 0x40eb18
mov dword [esp], ebx
call fcn.0041bd04
test eax, eax
je 0x40ebd0
mov dword [esp], ebx
call fcn.0041b794
mov ebx, eax
test eax, eax
je 0x40eb35
mov dword [esp], ebx
call fcn.0041a840
cmp eax, 0x49e740
je 0x40eb18
mov dword [esp], ebx
call fcn.0041a840
cmp eax, 0x49e680
jne 0x40eabc
mov dword [esp], ebx
call fcn.0041a840
cmp eax, 0x49e740
je 0x40eadc
mov dword [esp], ebx
call fcn.0041b794
mov ebx, eax
test eax, eax
jne 0x40eafa
test edi, edi
je 0x40ed0c
mov dword [esp + 4], 0x4a3b6a
mov dword [esp], 0
call fcn.0040d97c
mov ebx, dword [0x5041c8]
test ebx, ebx
je 0x40ecac
xor esi, esi
jmp 0x40eb76
mov dword [esp], ebx
call fcn.0041b794
mov ebx, eax
test eax, eax
je 0x40eca4
mov dword [esp], ebx
call fcn.0041a614
test eax, eax
je 0x40eb64
mov dword [esp], ebx
call fcn.0041a614
cmp byte [eax], 0
je 0x40eb64
mov dword [esp], ebx
call fcn.0041a840
cmp eax, 0x49e680
jne 0x40eb64
test esi, esi
je 0x40f012
mov dword [esp], ebx
call fcn.0041a614
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a3ae4
mov dword [esp], 0
call fcn.0040d97c
mov esi, 1
jmp 0x40eb64
mov dword [esp], ebx
call fcn.0041a614
test eax, eax
je 0x40eaec
mov dword [esp], ebx
call fcn.0041c918
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a3cd0
mov dword [esp], esi
call fcn.0040db54
test edi, edi
je 0x40ecec
mov dword [esp], ebx
call fcn.0041b9f8
test eax, eax
je 0x40ed2c
mov dword [esp], ebx
call fcn.0041b9f8
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x40ed2c
mov dword [esp], ebx
call fcn.0041a614
mov dword [esp], ebx
mov dword [ebp - 0x78], eax
call fcn.0041a840
mov edi, dword [eax]
mov dword [esp], ebx
call fcn.0041b9f8
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 4]
mov dword [esp], ebx
mov dword [ebp - 0x74], ecx
call fcn.0041b9f8
mov edx, dword [ebp - 0x78]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ecx, dword [ebp - 0x74]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], str._20s:__5d___s:_s__s_n
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
inc dword [0x4fe2fc]
xor eax, eax
call fcn.0040d7ec
mov edi, 1
jmp 0x40eaec
test esi, esi
jne 0x40e568
mov dword [esp + 4], str.NO_UNDEFINED_SYMBOLS_n
mov dword [esp], 0
call fcn.0040d97c
jmp 0x40e568
mov dword [esp + 8], edx
mov dword [esp + 4], str._n_t_s
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
mov dword [ebp - 0x50], esi
jmp 0x40e8f4
mov dword [esp + 4], str.DEFINED_SYMBOLS_n
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
inc dword [0x4fe2fc]
jmp 0x40ec04
mov dword [esp + 4], str.NO_DEFINED_SYMBOLS_n
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
inc dword [0x4fe2fc]
jmp 0x40eb3d
mov dword [esp], ebx
call fcn.0041a614
mov edi, eax
mov dword [esp], ebx
call fcn.0041a840
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._33s:_s__s_n
mov eax, dword [0x4fe2f0]
mov dword [esp], eax
call fcn.0040d7c8
jmp 0x40ec8d
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x40e6c4
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], edx
jmp 0x40e6b0
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x68], ecx
cmp edx, ecx
jae 0x40ef38
mov eax, 0x4fe320
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
je 0x40f10e
inc dword [ebp - 0x4c]
add eax, 0x6c
cmp dword [ebp - 0x4c], 3
jne 0x40ed9d
mov eax, dword [0x4fe30c]
mov dword [ebp - 0x64], eax
lea ecx, [eax + eax*2]
lea eax, [ecx + ecx*8]
lea eax, [eax*4 + 0x4fe320]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x64]
inc eax
mov dword [0x4fe30c], eax
cmp eax, 3
je 0x40f14b
mov eax, dword [ebp - 0x64]
lea ecx, [eax + eax*2]
lea eax, [ecx + ecx*8]
shl eax, 2
mov dword [ebp - 0x4c], eax
add eax, 0x4fe320
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x4fe320], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 4], edx
mov byte [ecx + 8], 0
test edi, edi
je 0x40f0dc
cmp dword [ebp - 0x68], edx
jbe 0x40f0dc
mov ecx, dword [0x4fe464]
test ecx, ecx
je 0x40ee2a
cmp eax, ecx
je 0x40ee96
mov eax, dword [0x4fe2f4]
test eax, eax
je 0x40ee57
mov dword [esp], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
call sub.msvcrt.dll_ftell
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 8], eax
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x58]
mov dword [0x4fe464], eax
mov dword [esp + 4], 0x4a3ae9
mov eax, dword [eax + 4]
mov dword [esp], eax
mov dword [ebp - 0x78], edx
call sub.msvcrt.dll_fopen
mov dword [0x4fe2f4], eax
test eax, eax
mov edx, dword [ebp - 0x78]
je 0x40f1cf
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x40f15a
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
mov dword [ebp - 0x78], edx
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x70], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov edx, dword [ebp - 0x78]
cmp edx, 1
jbe 0x40f03c
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x68], ebx
mov ebx, edx
nop
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0x40ef24
cmp eax, 0xa
je 0x40f130
cmp eax, 0xd
jne 0x40eee0
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xa
je 0x40ef24
mov edx, dword [0x4fe2f4]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_ungetc
mov eax, dword [ebp - 0x4c]
inc eax
cmp dword [ebp - 0x4c], ebx
jae 0x40f039
mov dword [ebp - 0x4c], eax
jmp 0x40eee0
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x40e6c4
cmp edx, dword [ebp - 0x68]
jbe 0x40e6c4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x60], edi
mov edi, esi
mov esi, ecx
mov dword [ebp - 0x64], ebx
mov ecx, dword [ebp - 0x68]
jmp 0x40efb2
mov dword [esp + 0x10], eax
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*8]
shl eax, 2
mov edx, dword [eax + 0x4fe320]
mov edx, dword [edx + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x4fe324]
mov dword [esp + 8], eax
mov dword [esp + 4], str._4u:__13s___s_n
mov dword [esp], edi
call fcn.0040d97c
mov ecx, dword [esi + 0xc]
cmp ecx, dword [edi + 0x18]
jae 0x40f02c
mov ebx, dword [esi + 0x10]
test ebx, ebx
jne 0x40f02c
inc dword [ebp - 0x4c]
mov ebx, dword [0x4fe30c]
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*8]
shl eax, 2
lea edx, [eax + 0x4fe320]
mov dword [eax + 0x4fe320], esi
inc ecx
mov dword [edx + 4], ecx
mov byte [edx + 8], 0
add edx, 8
mov ecx, dword [ebp - 0x60]
mov eax, esi
call fcn.0040d9b0
mov edx, dword [ebp - 0x4c]
test edx, edx
jne 0x40ef68
mov edx, dword [0x4fe30c]
inc edx
mov dword [0x4fe30c], edx
cmp edx, 3
jne 0x40ef68
mov dword [0x4fe30c], 0
jmp 0x40ef68
mov dword [esp + 4], str.UNDEFINED_SYMBOLS_n
mov dword [esp], 0
call fcn.0040d97c
jmp 0x40eba6
mov esi, edi
mov edi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
jmp 0x40e6c4
mov ebx, dword [ebp - 0x68]
imul eax, dword [ebp - 0x64], 0x6c
add eax, 0x4fe328
mov dword [ebp - 0x64], eax
lea eax, [edi - 1]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0x40f0ba
cmp eax, 0xa
je 0x40f1b8
cmp eax, 0xd
je 0x40f182
xor edx, edx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], ebx
mov esi, edx
mov ebx, dword [ebp - 0x64]
jmp 0x40f097
cmp eax, 0xa
je 0x40f1af
cmp eax, 0xd
je 0x40f179
inc esi
cmp dword [ebp - 0x4c], esi
jbe 0x40f09f
mov byte [ebx], al
inc ebx
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
jne 0x40f084
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x64]
mov byte [edx], 0
mov dword [esp + 8], 0
mov ecx, dword [ebp - 0x70]
mov dword [esp + 4], ecx
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x60]
add eax, 8
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], str._4u:__13s___s_n
mov dword [esp], esi
call fcn.0040d97c
jmp 0x40e6c4
cmp edx, dword [eax + 4]
jne 0x40eda8
imul eax, dword [ebp - 0x4c], 0x6c
add eax, 0x4fe320
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x4c], 3
jne 0x40f0dc
jmp 0x40edb4
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xd
jne 0x40ef12
jmp 0x40ef24
mov dword [0x4fe30c], 0
jmp 0x40edde
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x78], edx
call sub.msvcrt.dll_fseek
mov edx, dword [ebp - 0x78]
jmp 0x40ee96
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x6c]
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xa
je 0x40f0ba
mov edx, dword [0x4fe2f4]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_ungetc
jmp 0x40f0ba
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x6c]
mov eax, dword [0x4fe2f4]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xd
jne 0x40f198
jmp 0x40f0ba
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x10], 1
jmp 0x40f0dc