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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
push 0
mov eax, ecx
mov dword [esp + 0x20], edx
push eax
push 0
push 0
push 0x82
push 0x1f4
push 0x80000000
push 0x80000000
push 0xca0000
push 0x429d08
push 0x429c40
mov dword [esp + 0x40], eax
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
mov dword [esp + 0x48], eax
call eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4053e9
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040bf89
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x424cc0]
lea edi, [esp + 0x8c]
lea eax, [esp + 0x20]
mov dword [esp + 0x94], 0
mov ecx, edi
mov dword [esp + 0x30], 0x14
sub ecx, eax
mov dword [esp + 0x34], 0x50010000
mov eax, 0x38e38e39
mov dword [esp + 0x38], str.Patch
imul ecx
movups xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [0x424cd0]
movups xmmword [esp + 0x44], xmm0
xor esi, esi
mov dword [esp + 0x3c], str.BUTTON
movaps xmm0, xmmword [0x424ce0]
sar edx, 3
mov eax, edx
mov dword [esp + 0x40], 0x80
shr eax, 0x1f
mov dword [esp + 0x54], 0x8c
mov dword [esp + 0x58], 0x50010000
mov dword [esp + 0x5c], str.Restore
mov dword [esp + 0x60], str.BUTTON
mov dword [esp + 0x64], 0
mov dword [esp + 0x78], 0x104
mov dword [esp + 0x7c], 0x50000202
mov dword [esp + 0x80], 0x4223a4
mov dword [esp + 0x84], str.ComboBox
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
movups xmmword [esp + 0x68], xmm0
add eax, edx
je 0x4055cb
cmp eax, 0x71c71c7
ja 0x40568c
lea esi, [eax + eax*8]
shl esi, 2
test esi, esi
jne 0x4054f7
xor edx, edx
jmp 0x405537
cmp esi, 0x1000
jb 0x405529
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x405691
push eax
lfence
call fcn.0040bf97
add esp, 4
test eax, eax
je 0x405696
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
jmp 0x405537
push esi
lfence
call fcn.0040bf97
add esp, 4
mov edx, eax
lea ecx, [edx + esi]
mov dword [esp + 8], edx
lea eax, [esp + 0x20]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov esi, edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0xc], esi
cmp eax, edi
je 0x4055be
lea ecx, [esp + 0x28]
sub edx, eax
mov eax, dword [ecx - 8]
lea ecx, [ecx + 0x24]
mov dword [esi], eax
mov eax, dword [ecx - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ecx - 0x24]
mov dword [ecx + edx - 0x24], eax
mov eax, dword [ecx - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ecx - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ecx - 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ecx - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ecx - 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx - 0xc]
mov dword [esi + 0x20], eax
lea eax, [ecx - 8]
add esi, 0x24
cmp eax, edi
jne 0x405567
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], esi
mov dword [esp + 0x94], esi
jmp 0x4055cd
mov eax, dword [esp + 8]
mov dword [esp + 0x94], esi
jmp 0x4055cd
xor eax, eax
xor edi, edi
cmp eax, esi
je 0x40561b
lea esi, [eax + 0x1c]
push 0
push dword [esp + 0x18]
push dword [esi - 0x1c]
push dword [esp + 0x1c]
push dword [esi - 0x18]
push dword [esi - 0x14]
push dword [esi - 0x10]
push dword [esi - 0xc]
push dword [esi - 8]
push dword [esi - 4]
push dword [esi]
push dword [esi + 4]
call dword [esp + 0x48]
test eax, eax
je 0x405688
cmp dword [esi], str.ComboBox
cmove edi, eax
add esi, 0x24
lea eax, [esi - 0x1c]
cmp eax, dword [esp + 0xc]
jne 0x4055d6
mov esi, 0x428910
push dword [esi]
push 0
push 0x143
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 4
cmp esi, 0x428938
jne 0x405620
push 0
push 0
push 0x14e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, 1
lea ecx, [esp + 0x90]
call fcn.004094a0
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040bf89
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x405666
call fcn.00408df0
call fcn.00401160
call fcn.0040f4f2
int3