Function at 0x10004640
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x150
mov eax, dword [0x100644ac]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
push 0x3ee
push ebp
mov dword [esp + 0x24], ebp
call ebx
cmp dword [0x1006b030], 2
mov dword [esp + 0x10], eax
mov dword [0x10065a18], ebp
jne 0x100046b2
mov ecx, 6
mov esi, 0x10037824
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xe4
lea eax, [esp + 0x7b]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.10024d90
add esp, 0xc
lea ecx, [esp + 0x5c]
push ecx
jmp 0x10004731
mov ecx, dword [0x10037818]
mov edx, dword [0x10037810]
mov eax, dword [0x10037814]
push 0xeb
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], edx
mov edx, dword [0x1003781c]
mov dword [esp + 0x64], eax
mov eax, dword [0x10037820]
lea ecx, [esp + 0x74]
push 0
push ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call fcn.10024d90
mov eax, dword [0x100659c8]
add esp, 0xc
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10004700
lea edi, [esp + 0x5c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10004712
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x5c]
rep movsb byte es:[edi], byte [esi]
push edx
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x1006b030], 2
jne 0x10004773
mov dword [0x1005d034], 0x10037574
mov dword [0x1005d038], 1
mov dword [0x1005d03c], 0x75
mov dword [0x1005d040], 0x10002cf0
mov dword [0x1005d044], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100048c9
push 0x3ee
push ebp
call ebx
cmp dword [0x1006b030], 2
mov ebx, eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x54], 0xffffffff
mov eax, 8
jne 0x100047b3
mov eax, 2
test eax, eax
jle 0x100048b6
mov ebp, 0x1005d024
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
mov ecx, dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x40]
push edx
push eax
push 0x1307
push ebx
mov dword [esp + 0x5c], ecx
call esi
mov ecx, dword [ebp + 8]
movzx edx, word [ebp + 4]
mov eax, dword [0x100659cc]
push 0
push ecx
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x130a
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x30]
push edx
push ebx
call esi
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x3c], eax
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, eax
sub esi, dword [esp + 0x28]
mov edi, ecx
sub edi, dword [esp + 0x34]
sub esi, dword [esp + 0x30]
sub edi, dword [esp + 0x2c]
add esi, dword [esp + 0x38]
add edi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
jns 0x1000488e
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0xc]
push 1
push 0
push 0
push 0x15
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
add ebp, 0x14
sub dword [esp + 0x10], 1
jne 0x100047c4
mov ebp, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push ebx
call fcn.10002c30
mov edx, dword [0x100659cc]
push 0x77
push edx
mov dword [0x10065940], 0x58
mov dword [0x10065944], ebp
mov dword [0x10065948], 0x77
mov dword [0x1006594c], 3
mov dword [0x10065950], 0x4c8
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x10065940
push 0
mov dword [0x10065954], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov eax, dword [0x100659cc]
push 0xa6
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [0x10065a14], eax
call fcn.100248f3
add esp, 0x150
ret 4