Function at 0x409fb8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
and byte [ebp - 0x468], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x7c
pop ecx
xor eax, eax
lea edi, [ebp - 0x467]
and byte [ebp - 0x274], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7c
xor eax, eax
pop ecx
lea edi, [ebp - 0x273]
rep stosd dword es:[edi], eax
and byte [esi + 0x8c], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x413050]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push eax
push 0x10
push 0x40fde8
call fcn.0040582c
pop ecx
pop ecx
mov ecx, esp
push eax
call fcn.0040487d
lea eax, [ebp - 0x468]
push eax
push 0x4a
push 0x40fd9c
call fcn.0040582c
pop ecx
pop ecx
mov ecx, esp
push eax
call fcn.0040487d
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040d93c
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.004070f2
lea ecx, [ebp - 4]
call fcn.004070a5
mov eax, dword [ebp - 4]
xor edi, edi
cmp dword [eax - 8], edi
jle 0x40a087
lea eax, [ebp - 8]
push 1
push eax
lea ecx, [ebp - 4]
call fcn.00404b55
push eax
lea ecx, [ebp - 4]
call fcn.00404912
lea ecx, [ebp - 8]
call fcn.00404851
push dword [ebp - 4]
mov ebx, 0xdd
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov ecx, dword [ebp - 4]
cmp dword [ecx - 8], edi
je 0x40a0a4
cmp eax, 8
jne 0x40a0a4
inc ebx
movzx ebx, bx
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xc
mov dword [ebp - 8], ebx
call edi
push eax
push 0xb
call edi
push eax
push 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push 0x80
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x32
call edi
push eax
push 0x31
call edi
push eax
push 1
push dword [ebp - 8]
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 0
push 0x80
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x2000000
push 1
push 1
lea ecx, [esi + 0x48]
call fcn.0040a928
push 0x3ed
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ebx, [esi + 0x6c]
lea ecx, [ebp - 0x10]
push ebx
push 0x4133b8
mov dword [ebp - 0x10], eax
call fcn.0040ac65
mov ecx, dword [ebx]
xor edi, edi
cmp ecx, edi
je 0x40a29a
lea eax, [esi + 0x1c]
lea edx, [eax + 0x28]
push edx
push 0x410e00
push eax
push ecx
call fcn.00403262
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
lea edi, [esi + 0x80]
mov word [ebp - 0x30], 3
mov ecx, edi
mov word [ebp - 0x20], 3
call fcn.004070f2
mov ecx, edi
call fcn.004070a5
mov eax, dword [edi]
cmp dword [eax - 8], 0
je 0x40a257
and byte [ebp - 0x65c], 0
push 0x7c
pop ecx
xor eax, eax
lea edi, [ebp - 0x65b]
push 0x4133b0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 8]
stosb byte es:[edi], al
call fcn.0040487d
lea eax, [ebp - 0x65c]
push eax
push 0x12
push 0x40fe54
call fcn.0040582c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40a1e5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [ebp - 8]
call fcn.00404aae
lea eax, [esi + 0x80]
push 0x4133ac
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406f2d
mov eax, dword [eax]
lea ecx, [ebp - 8]
push eax
push dword [eax - 8]
call fcn.00404aae
lea ecx, [ebp - 0xc]
call fcn.00404851
push dword [ebp - 8]
and word [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
call fcn.0040a839
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x40a245
mov word [ebp - 0x20], 0xa
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 8]
call fcn.00404851
mov eax, dword [esi + 0x70]
push 0xffffffffffffffff
push eax
call fcn.0040a7fa
pop ecx
mov ebx, dword [ebx]
pop ecx
mov edi, eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push edi
push ebx
call dword [eax + 0x2c]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x30]
push eax
call edi
xor edi, edi
mov eax, dword [esi + 0x84]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], edi
jl 0x40a2b6
mov dword [ecx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40a2c8
mov eax, dword [0x413050]
mov dword [ecx], eax
push dword [esi + 0x84]
call fcn.004049dd
lea ecx, [ebp - 0x80]
call fcn.0040e662
push ecx
mov ecx, esp
push 0x41368c
call fcn.0040487d
lea ecx, [ebp - 0x80]
call fcn.0040e6cc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp byte [ebp - 0x5c], 0
mov dword [ebp - 0xc], eax
je 0x40a31b
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [esi + 4]
call ebx
or eax, 0x1000000
push eax
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xfffffffffffffff0
push dword [esi + 4]
call ebx
jmp 0x40a353
cmp byte [ebp - 0x58], 0
je 0x40a33c
push 0x40
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40a353
push 1
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp byte [ebp - 0x5f], 0
je 0x40a391
cmp byte [ebp - 0x59], 0
je 0x40a391
mov ecx, dword [0x413664]
call fcn.00409672
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push ebx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x80]
call fcn.0040e6be
lea ecx, [ebp - 4]
call fcn.00404851
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10