Function at 0x402120
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
mov eax, 0x31
push ebx
mov ecx, 0x20
push esi
xor ebx, ebx
mov word [esp + 0x26], ax
mov word [esp + 0x2c], ax
mov word [esp + 0x38], ax
push edi
mov word [esp + 0x26], cx
mov word [esp + 0x32], cx
lea eax, [esp + 0xc]
mov edi, 0x30
mov ecx, 0x2d
push ebx
push eax
mov word [esp + 0x14], 0x57
mov word [esp + 0x16], 0x6e
mov word [esp + 0x18], 0x64
mov word [esp + 0x1a], 0x45
mov word [esp + 0x1c], 0x79
mov word [esp + 0x1e], 0x65
mov word [esp + 0x20], bx
mov word [esp + 0x24], 0x7a97
mov word [esp + 0x26], 0x53e3
mov word [esp + 0x28], 0x67e5
mov word [esp + 0x2a], 0x770b
mov word [esp + 0x2c], 0x5668
mov word [esp + 0x30], 0x56
mov word [esp + 0x34], 0x2e
mov word [esp + 0x36], di
mov word [esp + 0x3c], cx
mov word [esp + 0x3e], 0x5b
mov word [esp + 0x40], 0x33
mov word [esp + 0x42], 0x36
mov word [esp + 0x46], 0x5ea6
mov word [esp + 0x48], 0x5d
mov word [esp + 0x4a], cx
mov word [esp + 0x4c], bx
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, ebx
je 0x402222
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x88
ret 0x10
push 0x7f00
push ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], 0x10
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x68], eax
push esi
call edi
push 0x65
push esi
mov dword [esp + 0x68], eax
call edi
lea edx, [esp + 0x48]
lea ecx, [esp + 0xc]
push edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], 0x4014f0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x50], 3
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x4022a3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret 0x10
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call edi
push 1
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x4022d6
cmp edi, ebx
je 0x4022d6
lea eax, [esi - 0x168]
cdq
sub eax, edx
mov ecx, eax
lea eax, [edi - 0x186]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
jmp 0x4022dd
mov ecx, 0x80000000
mov eax, ecx
mov edx, dword [esp + 0x5c]
push ebp
push ebx
push edx
push ebx
push ebx
push 0x186
push 0x168
push eax
push ecx
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x40]
push 0x16ca0000
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
lea edx, [esp + 0x84]
push ebx
push edx
call edi
cmp eax, ebx
je 0x402372
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
cmp eax, 0xffffffff
je 0x402372
lea eax, [esp + 0x7c]
push eax
push esi
call ebp
test eax, eax
jne 0x402361
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [esp + 0x84]
push ebx
push eax
call edi
cmp eax, ebx
jne 0x40233a
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret 0x10