Function at 0x418990
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x254
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x268]
mov ecx, dword [esp + 0x260]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x270]
push ebx
push ebp
mov ebp, dword [esp + 0x274]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x280]
push esi
mov esi, dword [esp + 0x268]
mov dword [esp + 0x38], edx
mov edx, dword [str.public]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
push edi
mov edi, dword [esp + 0x268]
mov dword [esp + 0x48], 6
mov edx, dword [edx + 0x12f]
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x418a2c
push esi
push edx
push eax
push ecx
push str.RUN_MQL_TA_d_QU_d_TO_ld:__.200s_n
call fcn.00575440
add esp, 0x14
jmp 0x418a3c
push edx
push eax
push ecx
push str.RUN_STORED_TA_d_QU_d_TO_ld_n
call fcn.00575440
add esp, 0x10
mov eax, dword [0x5b46bc]
cmp dword [eax], ebx
je 0x418aa6
mov ecx, dword [0x5b46b8]
test byte [ecx], 0x40
je 0x418aa6
test esi, esi
je 0x418a68
push esi
push str.Dynamic
push 2
push 6
call fcn.00573da0
add esp, 0x10
jmp 0x418a9c
push edi
lea edx, [esp + 0x58]
push 0x5a8530
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push edi
call fcn.0041e210
add esp, 4
push eax
push str.Run_stored
push 3
push 6
call fcn.00573da0
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x418fcd
mov ecx, dword [esp + 0x270]
push 1
lea edi, [esp + 0x3c]
call fcn.00415210
mov esi, eax
add esp, 4
test esi, esi
jne 0x418fcd
mov ecx, dword [0x6d4a74]
cmp dword [ecx + 3], 4
je 0x418ad9
lea esi, [eax + 2]
jmp 0x418e8c
mov ecx, dword [esp + 0x18]
mov edx, ecx
imul edx, edx, 0x25
cmp byte [edx + 0x6230a0], bl
je 0x418af4
mov esi, 0x138d
jmp 0x418e8c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x418b04
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x418b8d
mov edx, dword [esp + 0x20]
push 1
push edx
push ecx
push 0
push eax
call fcn.004205c0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x418fcd
push 0x200
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x418b4a
lea esi, [eax + 6]
jmp 0x418e8c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00421c80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418e07
jle 0x418b7b
cmp esi, 0x1388
jl 0x418fcd
mov eax, dword [esp + 0x18]
push eax
call fcn.0041f450
add esp, 4
jmp 0x418fcd
mov eax, dword [esp + 0x34]
test eax, eax
je 0x418b9d
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
jmp 0x418ba5
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x3c]
push ecx
push 0
mov edx, 1
push 0
mov word [esp + 0x38], dx
lea eax, [esp + 0x54]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3e], eax
mov eax, dword [esp + 0x284]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
call fcn.00560980
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x418fcd
mov edi, dword [esp + 0x10]
movzx ecx, word [edi]
movsx eax, cx
cdq
sub eax, edx
sar eax, 1
movzx edx, word [edi + eax*2 - 2]
cmp dx, cx
jl 0x418c05
dec eax
mov dword [esp + 0x1c], eax
jmp 0x418c0c
movsx edx, dx
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x1c], ebx
je 0x418c31
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x418fcd
mov edi, dword [esp + 0x10]
xor eax, eax
cmp dword [esp + 0x1c], eax
jle 0x418c64
mov edx, dword [esp + 0x1c]
jmp 0x418c44
mov edi, dword [esp + 0x10]
movzx ecx, word [edi + eax*2]
cmp cx, word [edi + eax*2 + 2]
jne 0x418c53
xor ecx, ecx
jmp 0x418c58
movsx ecx, cx
add ecx, edi
mov cx, word [ecx]
mov word [ebx + eax*2], cx
inc eax
cmp eax, edx
jl 0x418c40
mov eax, dword [ebp + 0xc]
add eax, 0x17
xor edx, edx
and eax, 0xfffffff8
sub eax, 0x10
cmp dword [esp + 0x28], edx
mov word [esp + 0x2c], dx
mov dword [esp + 0x2e], ebx
mov dword [ebp + 0xc], eax
mov dword [esp + 0x24], edx
jle 0x418e07
lea esp, [esp]
lea ecx, [esp + 0x4c]
cmp dword [esp + 0x14], ecx
je 0x418ca6
cmp dword [esp + 0x24], 0
je 0x418ca6
add dword [esp + 0x14], 8
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x274]
push edx
push 0
push 0
lea eax, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
call fcn.00560980
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x418fcd
mov eax, dword [0x5b46bc]
cmp dword [eax], esi
je 0x418d0c
mov ecx, dword [0x5b46b8]
test byte [ecx], 0x40
je 0x418d0c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x268]
push edx
push ebx
push eax
call fcn.00414610
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x418fcd
cmp dword [esp + 0x28], 1
mov eax, dword [esp + 0x20]
setg cl
movzx edx, cl
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x274]
push ebx
push ecx
push edx
push 0
push eax
call fcn.00420620
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x418fcd
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx + 6]
cmp ax, 0x29
jl 0x418d5a
cmp ax, 0x2a
jle 0x418d64
mov edx, 0x8d
cmp ax, dx
jne 0x418d6f
cmp dword [esp + 0x28], 1
jg 0x418ed1
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00421c80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x418ed8
mov edx, dword [esp + 0x20]
movzx eax, word [edx + 6]
cmp ax, 0x29
jl 0x418da6
cmp ax, 0x2a
jle 0x418dc3
mov ecx, 0x8d
cmp ax, cx
je 0x418dc3
push edi
call fcn.0041f450
mov esi, eax
add esp, 4
test esi, esi
jne 0x418fcd
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x418de5
lea ecx, [ecx]
cmp word [ebx + eax*2], 0xd
jne 0x418de0
mov edx, 0x1b
mov word [ebx + eax*2], dx
inc eax
cmp eax, ecx
jl 0x418dd0
mov eax, dword [ebp + 0xc]
add eax, 0x17
and eax, 0xfffffff8
sub eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
jl 0x418c90
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
movzx eax, word [ecx + 6]
cmp ax, 0x29
jl 0x418e23
cmp ax, 0x2a
jle 0x418e31
mov edx, 0x8d
cmp ax, dx
jne 0x418f7a
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x64]
push edx
mov dword [esp + 0x36], eax
call fcn.005754a0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x284]
push 0
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
push edx
push ebp
call fcn.00560bb0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x418fcd
cmp dword [esp + 0x44], eax
jne 0x418ef4
mov esi, 0xf
mov eax, dword [esp + 0x270]
push eax
push 0x2ef0
push esi
call fcn.00406f10
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x418eb0
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
test ebx, ebx
je 0x418ebe
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [esp + 0x38], 0
jl 0x418eca
call fcn.00416270
mov eax, esi
jmp 0x419063
mov esi, 0x41a8
jmp 0x418e8c
jle 0x418ee6
cmp esi, 0x1388
jl 0x418fcd
push edi
call fcn.0041f450
add esp, 4
jmp 0x418fcd
mov esi, dword [esp + 0x10]
movzx ecx, word [esi]
movsx eax, cx
cdq
sub eax, edx
sar eax, 1
movzx edx, word [esi + eax*2 - 2]
cmp dx, cx
jl 0x418f10
dec eax
jmp 0x418f13
movsx eax, dx
test eax, eax
jne 0x418f1b
xor edx, edx
jmp 0x418f76
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00421c80
add esp, 0x10
test eax, eax
jne 0x418f71
mov esi, dword [esp + 0x10]
movzx ecx, word [esi]
movsx eax, cx
cdq
sub eax, edx
sar eax, 1
movzx edx, word [esi + eax*2 - 2]
cmp dx, cx
jl 0x418f60
dec eax
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov word [ebp], cx
jmp 0x418f7a
movsx eax, dx
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov word [ebp], cx
jmp 0x418f7a
mov edx, 1
mov word [ebp], dx
cmp dword [esp + 0x40], 0
jne 0x418f9f
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 6]
cmp ax, 0x29
jl 0x418f95
cmp ax, 0x2a
jle 0x418f9f
mov ecx, 0x8d
cmp ax, cx
jne 0x418fb2
mov edx, dword [esp + 0x18]
push edx
call fcn.0041f450
mov esi, eax
add esp, 4
test esi, esi
jne 0x418fcd
test ebx, ebx
je 0x418fc2
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor ebx, ebx
call fcn.00417930
mov esi, eax
test esi, esi
je 0x41903f
mov eax, dword [esp + 0x270]
push eax
push 0x2ef0
push 0
call fcn.00406f10
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x418ff2
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
test ebx, ebx
je 0x419000
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [esp + 0x38], 0
jl 0x41903b
mov eax, dword [0x6d4a74]
cmp byte [eax], 0
je 0x41902d
cmp byte [eax + 1], 0
je 0x41902d
cmp dword [0x62309c], 0
jne 0x41902d
mov edx, dword [eax + 7]
mov ecx, 0xe
call fcn.004161c0
push 1
push 0xffffffffffffffff
push 2
call fcn.00419b90
add esp, 0xc
mov eax, esi
jmp 0x419063
mov edx, dword [0x5b46bc]
cmp dword [edx], 0
je 0x419061
mov eax, dword [0x5b46b8]
test dword [eax], 0x4000
je 0x419061
push 7
call fcn.004251d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x254
ret