Function at 0x406000
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x438888
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4423c8]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4423c8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x88]
mov edx, ecx
and edx, 0xf
sub ecx, edx
mov dword [esp + 0x24], eax
add ecx, 0x10
shr ecx, 2
mov eax, 0xaaaaaaab
mul ecx
xor ebx, ebx
push ebx
shr edx, 1
xor eax, eax
push 0x439688
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], edx
xor ebp, ebp
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
call fcn.00402a30
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ff
push esi
mov dword [esp + 0x80], ebx
call edi
push ebp
push 0xffffffffffffffff
push 0xc5
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x20]
push 0x439688
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x3fb
push esi
call edi
mov edi, eax
push 5
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push ebp
push 0x401
push edi
call esi
push ebp
push ebp
push 0x402
push edi
call esi
push ebp
push 1
push 0x404
push edi
call esi
mov ecx, dword [esp + 0x14]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
xor esi, esi
mov dword [esp + 0x28], edx
test ecx, ecx
jbe 0x406243
test ebx, ebx
jne 0x406165
lea edx, [esi*4]
push edx
lea eax, [esp + 0x50]
push str.0x_08X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x58]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406145
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402b80
mov ebp, esi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + esi*4]
push eax
lea edx, [esp + 0x50]
push 0x4396fc
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc esi
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406190
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
call fcn.00402b80
inc ebx
cmp ebx, 4
jne 0x406217
mov dword [esp + 0x1c], ebx
mov ebx, dword [edi + ebp*4]
inc ebp
mov esi, 4
cmp bl, 0x20
mov al, bl
jl 0x4061cd
cmp bl, 0x7e
jle 0x4061cf
mov al, 0x2e
movsx cx, al
movzx edx, cx
push edx
push 1
lea ecx, [esp + 0x38]
call fcn.00405e40
shr ebx, 8
sub esi, 1
jne 0x4061c1
push 1
push 0x4396f8
lea ecx, [esp + 0x38]
call fcn.00402b80
sub dword [esp + 0x1c], 1
jne 0x4061b8
push 2
push 0x4396f0
lea ecx, [esp + 0x38]
call fcn.00402b80
mov esi, dword [esp + 0x2c]
xor ebx, ebx
xor edx, edx
mov eax, esi
div dword [esp + 0x28]
test edx, edx
jne 0x406235
mov eax, dword [esp + 0x18]
push edx
push edx
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, dword [esp + 0x14]
jb 0x40611f
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov esi, 8
cmp dword [esp + 0x48], esi
jae 0x406256
lea eax, [esp + 0x34]
mov ebx, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0xb1
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x48], esi
jb 0x40628e
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040ffa4
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004109f8
add esp, 0x68
ret