Function at 0x4185d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x43ed58
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [esi]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 1
mov al, byte [ecx + 0x10]
movzx esi, word [ecx + 6]
mov byte [ebp - 3], al
mov eax, dword [ecx + 0x18]
test eax, eax
cmovne edx, eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x2c], eax
xor ebx, ebx
mov eax, dword [ecx + 0x14]
xor edi, edi
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], bl
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
mov dword [ebp - 0x40], eax
cmp byte [0x455cb8], al
jne 0x418eef
mov ecx, dword [ebp + 8]
mov eax, 2
cmp esi, eax
cmova esi, eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], esi
cmp dword [eax], ebx
jne 0x4186c4
mov eax, dword [ecx]
cmp byte [eax + 0x11], bl
je 0x4186c4
cmp byte [eax + 0x12], bl
je 0x4186c4
push ecx
call fcn.00419190
add esp, 4
mov esi, eax
cmp byte [ebp - 3], bl
jne 0x4186ae
cmp byte [0x455cb8], bl
jne 0x4186ae
test esi, esi
je 0x4186ae
mov edi, dword [ebp + 0xc]
push dword [esi]
push 0x42b7e0
push edi
call fcn.00426490
mov esi, dword [esi + 4]
add esp, 0xc
test esi, esi
jne 0x418684
push edi
push 0xa
call dword [sym.imp.MSVCR120.dll_fputc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push edi
push 0xa
call dword [sym.imp.MSVCR120.dll_fputc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], bl
jne 0x4186e7
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push ecx
call fcn.00418520
mov al, byte [ebp + 0x10]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], al
xor esi, esi
cmp dword [ecx + 8], ebx
jbe 0x418751
xor ebx, ebx
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x54], eax
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418700
sub ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x2c]
push ecx
push edx
call fcn.00417530
mov eax, dword [ebp - 0x34]
add esp, 0x18
cmp dword [ebp - 0x48], ebx
cmova ebx, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x38]
jbe 0x418739
mov dword [ebp - 0x38], eax
mov byte [ebp - 1], 1
cmp dword [ebp - 0x30], edi
mov ecx, dword [ebp + 8]
cmova edi, dword [ebp - 0x30]
inc esi
cmp esi, dword [ecx + 8]
jb 0x4186f0
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov dword [ebp - 0x4c], edi
mov esi, dword [ecx + 0x18]
mov edx, dword [esi]
test edx, edx
je 0x4187b8
xor edi, edi
lea esp, [esp]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x54], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418768
sub ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
push ecx
push edx
call fcn.00417530
mov eax, dword [ebp - 0x20]
add esp, 0x18
cmp dword [ebp - 0x24], edi
cmova edi, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x3c]
jbe 0x4187a1
mov dword [ebp - 0x3c], eax
mov byte [ebp - 2], 1
cmp dword [ebp - 0x18], ebx
mov edx, dword [esi + 4]
cmova ebx, dword [ebp - 0x18]
add esi, 4
test edx, edx
jne 0x418760
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
lea eax, [eax*8 + 8]
push eax
call fcn.00424dd0
mov esi, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], esi
lea ecx, [eax*8 + 8]
push ecx
call fcn.00424dd0
push ebx
mov dword [ebp - 0x1c], eax
call fcn.00424dd0
push edi
mov dword [esi], eax
call fcn.00424dd0
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebx]
cmp byte [ecx + 0x11], 0
je 0x418820
cmp byte [ebp - 3], 0
jne 0x418820
mov eax, dword [ebx + 4]
test eax, eax
je 0x418820
push eax
push 0x42b7e0
push edi
call fcn.00426490
add esp, 0xc
mov eax, dword [ebx]
mov esi, dword [sym.imp.MSVCR120.dll___iob_func]
mov eax, dword [eax + 0x3c]
test eax, eax
jle 0x418834
mov dword [ebp - 0x40], eax
jmp 0x41886c
call esi
add eax, 0x20
cmp edi, eax
jne 0x418857
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll__fileno]
push eax
call dword [sym.imp.MSVCR120.dll__isatty]
add esp, 8
test eax, eax
jne 0x41885d
cmp byte [ebp + 0x10], 0
je 0x41886c
mov eax, dword [ebx]
xor ecx, ecx
mov eax, dword [eax + 0x38]
test eax, eax
cmovg ecx, eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebx]
cmp dword [eax], 3
jne 0x418967
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 8]
test cx, cx
jne 0x418891
lea esi, [edx + 1]
cmp byte [ebp - 1], dl
je 0x4188b4
lea esi, [edx + 2]
jmp 0x4188b4
cmp cx, 1
jne 0x4188af
mov esi, 3
cmp byte [ebp - 1], dl
je 0x4188b4
cmp eax, 0x43edc8
jne 0x4188b4
mov esi, 4
jmp 0x4188b4
mov esi, 7
cmp byte [ebp - 2], dl
je 0x4188c7
cmp cx, 2
jae 0x4188c7
cmp eax, 0x43edc8
je 0x4188c7
inc esi
cmp byte [ebp - 3], dl
jne 0x418900
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x4188e8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
call sub.MSVCR120.dll__libm_sse2_log10_precise
mov ecx, dword [ebp - 0x10]
cvttsd2si edx, xmm0
inc edx
test cx, cx
jne 0x4188f2
add edx, 9
jmp 0x418900
cmp cx, 1
jne 0x4188fd
add edx, 0xc
jmp 0x418900
add edx, 0xf
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x40]
add ebx, esi
add ebx, dword [ebp - 0xc]
jmp 0x418910
cmp ebx, edx
mov eax, ebx
cmovb eax, edx
test edi, edi
jle 0x418937
mov ecx, dword [ebp - 0xc]
add ecx, 3
add ecx, esi
cmp ecx, edx
cmovb ecx, edx
cmp edi, eax
jae 0x418934
mov eax, ecx
cmp edi, ecx
jb 0x418934
mov eax, edi
mov ecx, dword [ebp - 0x10]
sub eax, esi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x41895e
cmp byte [ebp - 2], 0
jne 0x41895e
cmp cx, 2
jae 0x41895e
cmp dword [ebp - 8], 0x43edc8
je 0x41895e
inc esi
mov byte [ebp - 2], 1
inc ebx
jmp 0x418910
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
xor edx, edx
mov ebx, dword [sym.imp.MSVCR120.dll_fputc]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x4c], eax
cmp dword [eax], edx
je 0x418dfa
cmp byte [0x455cb8], 0
mov edi, dword [ebp + 0xc]
jne 0x418df4
mov esi, dword [ebp + 8]
xor ecx, ecx
test edx, edx
mov eax, edx
setne cl
xor edx, edx
div dword [esi + 8]
test edx, edx
jne 0x418a0e
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, eax
mov ebx, dword [ebp - 8]
cmp si, 2
jae 0x4189c7
cmp byte [ebp - 1], 0
je 0x4189c7
cmp ebx, 0x43edc8
jne 0x4189c7
lea edx, [eax + 1]
cmp byte [ebp - 3], 0
jne 0x4189e5
push edi
push ecx
push dword [ebp - 0x14]
push edx
push dword [ebp - 0x44]
push esi
push ebx
call fcn.0041a730
add esp, 0x1c
inc dword [ebp - 0x44]
jmp 0x418a0e
cmp dword [ebp - 0x40], 0
jne 0x4189fc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp byte [eax + 0x11], 0
je 0x4189fc
cmp si, 2
jne 0x418a0e
push edi
push ecx
push dword [ebp - 0x14]
push edx
push 0
push esi
push ebx
call fcn.0041a730
add esp, 0x1c
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp - 0x40]
div dword [ecx + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + edx*4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418a24
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x2c]
sub ecx, esi
push dword [ebp - 0x1c]
push ebx
push ecx
push edx
call fcn.00417380
mov edx, dword [ebp - 0x4c]
add esp, 0x14
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x418a50
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418a50
push dword [ebp - 0x3c]
sub ecx, esi
mov esi, dword [ebp - 0x28]
push esi
push ebx
push ecx
push edx
call fcn.00417380
mov ecx, dword [esi + 4]
xor eax, eax
mov esi, dword [ebp - 0x10]
xor ebx, ebx
add esp, 0x14
mov dword [ebp - 0x18], eax
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], ecx
lea esp, [esp]
test edx, edx
je 0x418a9c
test ebx, ebx
jne 0x418ddb
mov ebx, dword [ebp - 8]
cmp si, 2
jne 0x418ab9
push dword [ebx + 0x38]
push 0x42b548
push edi
call fcn.00426490
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x418ba2
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x50], ecx
cmp si, 2
je 0x418ade
cmp byte [ebp - 1], 0
je 0x418af7
cmp ebx, 0x43edc8
jne 0x418af7
test eax, eax
je 0x418ae7
mov eax, dword [ebx + 0x50]
jmp 0x418aec
mov eax, 0x42ee00
push edi
push eax
call dword [sym.imp.MSVCR120.dll_fputs]
add esp, 8
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x18]
push dword [ecx + eax*8]
call fcn.004184b0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + eax*8]
push 0x43efe0
push edi
call fcn.00426490
mov eax, dword [ebp - 0xc]
add esp, 0x18
sub eax, dword [ebp - 0x50]
test eax, eax
jle 0x418b41
push 0x42ee00
push eax
push 0x43efbc
push edi
call fcn.00426490
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*8 + 8], 0
je 0x418b77
test si, si
jne 0x418b61
cmp byte [ebp - 1], 0
je 0x418b71
cmp ebx, 0x43edc8
je 0x418b71
push edi
push dword [ebx + 0x54]
call dword [sym.imp.MSVCR120.dll_fputs]
mov eax, dword [ebp - 0x18]
add esp, 8
inc eax
mov dword [ebp - 0x18], eax
jmp 0x418be4
test si, si
jne 0x418b8a
cmp byte [ebp - 1], 0
je 0x418b99
cmp ebx, 0x43edc8
je 0x418b99
push edi
push 0x42ee00
call dword [sym.imp.MSVCR120.dll_fputs]
add esp, 8
mov dword [ebp - 0x34], 1
jmp 0x418be4
mov cl, byte [ebp - 1]
movzx eax, si
add eax, dword [ebp - 0xc]
cmp si, 2
jae 0x418bbe
test cl, cl
je 0x418bbe
cmp ebx, 0x43edc8
jne 0x418bbe
inc eax
test si, si
jne 0x418bd0
cmp ebx, 0x43edc8
je 0x418bd0
test cl, cl
je 0x418bd0
inc eax
push 0x42ee00
push eax
push 0x43efbc
push edi
call fcn.00426490
add esp, 0x10
test si, si
je 0x418c0c
cmp dword [ebp - 0x24], 0
push edi
je 0x418bf5
push dword [ebx + 0x48]
jmp 0x418c03
cmp dword [ebp - 0x20], 0
jne 0x418c00
push dword [ebx + 0x3c]
jmp 0x418c03
push dword [ebx + 0x44]
call dword [sym.imp.MSVCR120.dll_fputs]
add esp, 8
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x418d91
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov eax, 0x42ee00
test esi, esi
je 0x418c2c
mov eax, dword [ebx + 0x60]
push edi
push eax
call dword [sym.imp.MSVCR120.dll_fputs]
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ecx + eax*8]
add eax, esi
push eax
call fcn.004184b0
mov ecx, dword [ebp - 0x28]
add esp, 0x14
mov edx, dword [ebp - 0x20]
mov ebx, eax
mov dword [ebp - 0x50], eax
mov esi, dword [ecx + edx*8]
mov ecx, dword [ebp - 0x24]
add esi, ecx
test eax, eax
je 0x418c80
movsx eax, byte [esi]
push edi
push eax
call dword [sym.imp.MSVCR120.dll_fputc]
add esp, 8
lea esi, [esi + 1]
dec ebx
jne 0x418c66
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x48]
sub ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x418ce5
mov ebx, dword [ebp - 8]
cmp si, 1
ja 0x418cbb
cmp byte [ebp - 2], 0
je 0x418d7c
cmp ebx, 0x43edc8
je 0x418d7c
test ecx, ecx
jle 0x418cd3
push 0x42ee00
push ecx
push 0x43efbc
push edi
call fcn.00426490
add esp, 0x10
push edi
push dword [ebx + 0x64]
call dword [sym.imp.MSVCR120.dll_fputs]
add esp, 8
jmp 0x418d7c
mov eax, dword [ebp - 0x28]
cmp dword [eax + edx*8 + 8], 0
je 0x418d45
mov ebx, dword [ebp - 8]
cmp si, 1
ja 0x418d06
cmp byte [ebp - 2], 0
je 0x418d31
cmp ebx, 0x43edc8
je 0x418d31
test ecx, ecx
jle 0x418d1e
push 0x42ee00
push ecx
push 0x43efbc
push edi
call fcn.00426490
add esp, 0x10
push edi
push dword [ebx + 0x5c]
call dword [sym.imp.MSVCR120.dll_fputs]
mov edx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + edx*8 + 0xc]
inc edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x48], ecx
jmp 0x418d7c
cmp si, 1
jbe 0x418d72
test ecx, ecx
jle 0x418d63
push 0x42ee00
push ecx
push 0x43efbc
push edi
call fcn.00426490
add esp, 0x10
push edi
push 0x42ee00
call dword [sym.imp.MSVCR120.dll_fputs]
add esp, 8
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x30], 1
cmp si, 2
jne 0x418d97
push edi
push dword [ebx + 0x40]
call dword [sym.imp.MSVCR120.dll_fputs]
add esp, 8
jmp 0x418d97
cmp si, 2
jae 0x418db4
push edi
push 0x42d94c
call dword [sym.imp.MSVCR120.dll_fputs]
mov eax, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x418a90
push dword [ebx + 0x40]
push 0x42b69a
push dword [ebp - 0x14]
push 0x43efe4
push edi
call fcn.00426490
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x418a90
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
add ecx, 4
inc edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], edx
cmp dword [ecx], 0
jne 0x418980
mov ebx, dword [sym.imp.MSVCR120.dll_fputc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp byte [eax + 0x12], 0
je 0x418e8f
mov esi, dword [ebp - 0x10]
cmp si, 2
jne 0x418e39
cmp byte [0x455cb8], 0
mov edi, dword [ebp + 0xc]
jne 0x418e39
push edi
push 2
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push 0
push 2
push dword [ebp - 8]
call fcn.0041a730
mov ecx, dword [ebp + 8]
add esp, 0x1c
cmp byte [ebp - 3], 0
jne 0x418e87
cmp dword [ecx + 0x28], 0
je 0x418e87
cmp byte [0x455cb8], 0
mov edi, dword [ebp + 0xc]
jne 0x418e87
cmp si, 2
jae 0x418e62
push edi
push 0xa
call ebx
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, dword [ecx + 0x28]
test esi, esi
je 0x418e87
lea esp, [esp]
push dword [esi]
push 0x42b7e0
push edi
call fcn.00426490
mov esi, dword [esi + 4]
add esp, 0xc
test esi, esi
jne 0x418e70
push edi
push 0xa
call ebx
add esp, 8
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.MSVCR120.dll_free]
push dword [eax]
call esi
mov ebx, dword [ebp - 0x28]
push dword [ebx]
call esi
push dword [ebp - 0x1c]
call esi
push ebx
call esi
add esp, 0x10
cmp byte [ebp - 4], 0
je 0x418eef
test edi, edi
je 0x418eef
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x20
cmp edi, eax
je 0x418eef
cmp byte [0x455cb8], 0
mov esi, dword [ebp + 0xc]
je 0x418ee5
push str.Interrupted_n
call sub.libintl_8.dll_libintl_gettext
push eax
push esi
call fcn.00426490
add esp, 0xc
push esi
call dword [sym.imp.MSVCR120.dll__pclose]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret