Function at 0x406510
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a687
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x619740]
cmp eax, 0xffffffff
jne 0x4067c1
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 0x1b0]
push 0x1c
xorps xmm0, xmm0
mov dword [ebp - 0x198], 0
push eax
push fcn.004131e0
movdqu xmmword [ebp - 0x1b0], xmm0
movq qword [ebp - 0x1a0], xmm0
call esi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1ac]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.004132a0
push 0
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push eax
call fcn.00413320
push 1
push 0x5e97a4
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
call fcn.004145d0
push 0x1c
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x198], 0
xorps xmm0, xmm0
push eax
push fcn.004131e0
movdqu xmmword [ebp - 0x1b0], xmm0
movq qword [ebp - 0x1a0], xmm0
call esi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00413320
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x40660e
mov edx, dword [edx]
cmp word [edx], 0
jne 0x406618
xor ecx, ecx
jmp 0x40662f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406620
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x134]
call fcn.004145d0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00402150
push 0x5ed1d4
lea ecx, [ebp - 0xd4]
call fcn.00402700
push 8
push 0x5e97a8
lea ecx, [ebp - 0xd4]
call fcn.004145d0
cmp dword [ebp - 0xc0], 8
lea eax, [ebp - 0xd4]
push 0
cmovae eax, dword [ebp - 0xd4]
push eax
call fcn.00552d70
add esp, 8
cmp eax, 0xffffffff
je 0x406746
lea ecx, [ebp - 0x74]
call fcn.004020c0
sub esp, 0x60
mov byte [ebp - 4], 3
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x1c0], esp
mov ecx, esp
push eax
call fcn.00402340
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 4
push eax
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x5ed1d8
call fcn.004021f0
sub esp, 0x60
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1b4], esp
push str.mode
call fcn.004021f0
sub esp, 0x60
mov byte [ebp - 4], 6
mov ecx, esp
push str.config
call fcn.004021f0
mov byte [ebp - 4], 3
call fcn.00413ef0
cmp dword [ebp - 0x64], 0
je 0x406728
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call fcn.005534ea
add esp, 4
mov dword [0x619740], eax
jmp 0x406732
mov dword [0x619740], 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00402150
mov ecx, dword [0x619740]
jmp 0x406751
mov ecx, 1
mov dword [0x619740], ecx
cmp dword [ebp - 0x120], 8
lea eax, [ebp - 0x134]
push ecx
cmovae eax, dword [ebp - 0x134]
push eax
push 0x5e97d8
lea eax, [ebp - 0x194]
push eax
push 0x6279dc
call fcn.004134e0
add esp, 0x14
lea eax, [ebp - 0x194]
cmp dword [ebp - 0x180], 8
cmovae eax, dword [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x194]
call fcn.00402150
lea ecx, [ebp - 0x134]
call fcn.00402150
lea ecx, [ebp - 0xd4]
call fcn.00402150
mov eax, dword [0x619740]
test eax, eax
jne 0x4067c9
xor eax, eax
jmp 0x406821
cmp dword [0x627a98], 0
je 0x4067c5
cmp dword [0x627e94], 0
jne 0x4067e2
mov eax, 3
jmp 0x406821
xor eax, eax
mov ecx, 1
cmp byte [0x627e48], al
cmovne eax, ecx
cmp byte [0x627e78], 0
je 0x406821
mov ecx, dword [ebp + 8]
cmp ecx, 1
jl 0x406821
cmp ecx, dword [0x627e74]
jge 0x406821
cmp dword [ecx*4 + 0x627e4c], 1
jne 0x406821
cmp byte [0x627e49], 0
je 0x406821
or eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 4