Function at 0x450790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x228
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
push edi
xor edi, edi
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x20], 0
mov ecx, dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x54], ecx
je 0x450910
mov dword [esp + 0xc], esi
cmp word [eax], di
je 0x4509c1
push 0x3a
push eax
call ecx
mov edx, dword [esp + 0x34]
mov ecx, eax
add esp, 8
mov dword [esp + 0x40], ecx
mov esi, edx
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x45080d
cmp eax, 9
jne 0x450812
add esi, 2
jmp 0x450800
test ecx, ecx
je 0x4508c2
mov edi, ecx
sub edi, edx
sar edi, 1
cmp edi, 0x20
jae 0x4508c0
push edi
push edx
lea eax, [esp + 0x130]
push eax
call dword [esp + 0x40]
add esp, 0xc
lea ecx, [esp + 0x128]
xor eax, eax
xor edx, edx
mov word [esp + edi*2 + 0x128], ax
push eax
push 1
push eax
call fcn.004b1280
add esp, 0xc
test eax, eax
je 0x4508c0
mov eax, dword [esp + 0x40]
add eax, 2
mov dword [esp + 0x50], eax
mov edx, eax
nop word [eax + eax]
movzx eax, word [edx]
mov ecx, eax
mov dword [esp + 0x40], ecx
cmp eax, 0x20
je 0x450883
cmp eax, 9
jne 0x450888
add edx, 2
jmp 0x450870
lea ecx, [esp + 0x128]
mov dword [esp + 0x2c], edx
mov esi, edx
call fcn.0041a370
mov edi, eax
sub edi, 1
js 0x4508b7
cmp word [esp + 0x40], 0
mov eax, esi
cmovne eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
cmp edi, 0xa
jl 0x4508c2
push dword [esp + 0xc]
jmp 0x451bec
xor edi, edi
push 0x4e6140
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4508e7
mov edx, dword [esp + 0x20]
mov byte [esp + 0x11], 1
mov dword [esp + 0x1c], edx
jmp 0x4509c9
push str.Show
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4509c1
mov edx, dword [esp + 0x20]
mov byte [esp + 0x12], 1
mov dword [esp + 0x1c], edx
jmp 0x4509c9
push 0x3a
push esi
call ecx
add esp, 8
mov dword [esp + 0xc], eax
mov ecx, esi
test eax, eax
je 0x450940
call fcn.0041a370
lea edi, [eax - 1]
cmp edi, 9
ja 0x451beb
mov ecx, dword [esp + 0xc]
add ecx, 2
nop word [eax + eax]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x450937
cmp eax, 9
je 0x450937
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push 0x4e6140
push ecx
mov dword [esp + 0x14], ecx
call esi
add esp, 8
test eax, eax
jne 0x450975
mov edx, dword [esp + 0x20]
mov byte [esp + 0x11], 1
mov dword [esp + 0x1c], edx
jmp 0x4509c9
push str.Show
push dword [esp + 0x10]
call esi
add esp, 8
test eax, eax
jne 0x450996
mov edx, dword [esp + 0x20]
mov byte [esp + 0x12], 1
mov dword [esp + 0x1c], edx
jmp 0x4509c9
mov esi, dword [esp + 0xc]
mov edx, 1
push 0
push 1
push 0
mov ecx, esi
call fcn.004b1280
add esp, 0xc
test eax, eax
je 0x4509c1
mov ecx, esi
call fcn.0041a370
mov byte [esp + 0x13], 1
jmp 0x4509c5
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dl, byte [ebp + 0x20]
mov eax, 0x4fbcd8
test dl, dl
mov ecx, 0x4fbfd0
cmovne ecx, eax
imul edi, edi, 0x4c
add edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4509fc
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dl, byte [ebp + 0x20]
test eax, eax
jne 0x4509fc
mov dword [edi + 0x20], eax
cmp byte [esp + 0x12], 0
je 0x450a1c
mov eax, dword [edi + 0x20]
test eax, eax
je 0x451bd4
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jmp 0x451bc7
cmp byte [esp + 0x11], 0
jne 0x450ad0
cmp dword [edi + 0x20], 0
je 0x450ad0
mov eax, dword [esp + 0x2c]
cmp word [eax], 0
jne 0x450ad0
mov al, byte [esp + 0x13]
test al, al
jne 0x450a55
mov eax, dword [esp + 0xc]
cmp word [eax], 0
jne 0x450ad0
mov al, byte [esp + 0x13]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test dl, dl
jne 0x450a81
test al, al
je 0x450a81
mov ecx, dword [esp + 0x1c]
cmp dword [edi + 8], ecx
je 0x450a81
mov eax, dword [edi + 0x2c]
mov dword [edi + 8], ecx
test eax, eax
je 0x450a81
push 0
push ecx
push 0x402
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je 0x450a99
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x450a99
push eax
push 0
push 0xc
push ecx
call esi
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x450aac
push eax
push 0
push 0xc
push dword [edi + 0x34]
call esi
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x451bd4
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [edi + 0x20]
test eax, eax
je 0x450ade
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x38]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x58], esi
test eax, eax
je 0x450af2
push eax
call esi
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x450afc
push eax
call esi
mov eax, dword [edi + 0x40]
test eax, eax
je 0x450b06
push eax
call esi
mov eax, dword [edi + 0x28]
test eax, eax
je 0x450b1e
cmp dword [edi + 0x24], 0
push eax
jne 0x450b18
call esi
jmp 0x450b1e
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0x4c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [esp + 0x11], 0
jne 0x451bd4
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x68], ecx
cmp word [ecx], 0
jne 0x450b5f
mov ecx, dword [0x4fe660]
mov dword [esp + 0x68], ecx
test ecx, ecx
je 0x450b57
cmp word [ecx], 0
jne 0x450b5f
mov dword [esp + 0x68], 0x4cfc40
mov cl, byte [ebp + 0x20]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 1
mov byte [esp + 0x1a], 1
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], 0x88c00000
mov dword [esp + 0x64], 8
mov dword [esp + 0x60], closesocket
mov dword [esp + 0x5c], closesocket
mov dword [esp + 0x40], 0xff000000
mov dword [edi + 0x44], 0xff000000
mov dword [edi + 0x48], 0xff000000
mov dword [edi + 4], closesocket
mov dword [esp + 0x3c], eax
test cl, cl
je 0x450be3
mov esi, closesocket
mov eax, esi
jmp 0x450bfa
push 0x60
push dword [0x4fdb64]
mov esi, 0x14
push 0x12c
call eax
mov cl, byte [ebp + 0x20]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], closesocket
cmp word [eax], 0
mov eax, dword [ebp + 0xc]
jne 0x450c22
cmp word [eax], 0
jne 0x450c22
test cl, cl
je 0x450c22
xor eax, eax
xor ecx, ecx
jmp 0x450c2c
mov eax, 0xa
mov ecx, 5
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
test ax, ax
je 0x451219
mov ecx, eax
movzx esi, cx
test esi, 0xffffff80
jne 0x450c62
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x450c62
and esi, 0xffffffdf
add esi, 0xffffffbf
cmp esi, 0x19
ja case.0x450c75.68
movzx eax, byte [esi + 0x451c3c]
jmp dword [eax*4 + 0x451c04]
and dword [esp + 0x64], 0xfffffff7
jmp case.0x450c75.68
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
and edx, 0xff3fffff
mov dword [esp + 0x24], edx
movzx eax, word [eax + 2]
cmp eax, 0x31
jne 0x450cb0
or edx, 0x800000
mov dword [esp + 0x24], edx
jmp case.0x450c75.68
mov ecx, dword [esp + 0xc]
cmp eax, 0x32
jne 0x451203
or edx, 0x400000
mov dword [esp + 0x24], edx
jmp 0x451203
mov ecx, dword [esp + 0xc]
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je case.0x450c75.68
mov esi, edx
mov dword [esp + 0xc], ecx
test esi, 0xffffff80
jne 0x450d02
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x450d02
and esi, 0xffffffdf
cmp esi, 0x42
je 0x450d2d
cmp esi, 0x54
je 0x450d2d
cmp esi, 0x57
je 0x450d2d
mov eax, dword [esp + 0xc]
cmp word [eax], 0x30
setne byte [esp + 0x1a]
cmp word [eax + 2], 0x30
setne byte [esp + 0x12]
jmp 0x450eb0
mov esi, dword [esp + 0xc]
push 0x1f
lea eax, [esi + 2]
push eax
lea eax, [esp + 0xf0]
push eax
call dword [esp + 0x40]
xor eax, eax
add esp, 0xc
mov word [esp + 0x126], ax
lea eax, [esp + 0xe8]
mov dword [esp + 0x30], eax
mov ax, word [esp + 0xe8]
test ax, ax
je 0x450dbb
movzx esi, ax
nop dword [eax + eax]
mov edx, 0x4e6614
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x450daa
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x450d80
mov eax, dword [esp + 0x30]
add eax, 2
mov dword [esp + 0x30], eax
movzx eax, word [eax]
mov esi, eax
test ax, ax
jne 0x450d70
jmp 0x450db7
mov eax, dword [esp + 0x30]
test eax, eax
je 0x450db7
xor ecx, ecx
mov word [eax], cx
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xe8]
call fcn.004b2720
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x450e30
lea ecx, [esp + 0xe8]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450de0
sub ecx, edx
sar ecx, 1
cmp ecx, 6
jbe 0x450dfe
xor eax, eax
mov word [esp + 0xf4], ax
push 0x10
lea eax, [esp + 0xec]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
movzx edx, al
add esp, 0xc
movzx ecx, ax
shl edx, 8
shr ecx, 8
or edx, ecx
shr eax, 0x10
shl edx, 8
movzx eax, al
or edx, eax
mov dword [esp + 0x28], edx
movzx esi, word [esi]
test esi, 0xffffff80
jne 0x450e4e
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x450e4e
and esi, 0xffffffdf
cmp esi, 0x42
je 0x450e79
cmp esi, 0x54
je 0x450e70
cmp esi, 0x57
jne 0x450e81
mov eax, dword [esp + 0x28]
push eax
mov dword [edi + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [edi + 0x40], eax
jmp 0x450e81
mov eax, dword [esp + 0x28]
mov dword [edi + 0x48], eax
jmp 0x450e81
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0xe8]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450e90
mov eax, dword [esp + 0xc]
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0xc], eax
jmp 0x450eb0
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je case.0x450c75.68
mov esi, edx
mov dword [esp + 0xc], ecx
test esi, 0xffffff80
jne 0x450ee2
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x450ee2
and esi, 0xffffffdf
cmp esi, 0x4d
je 0x450f20
cmp esi, 0x53
jne case.0x450c75.68
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ecx, dword [esp + 0x10]
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
test edx, edx
jns 0x451203
mov dword [esp + 0x20], 0
jmp 0x451203
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ecx, dword [esp + 0x10]
mov edx, eax
add esp, 4
mov dword [esp + 0x48], edx
test edx, edx
jns 0x451203
mov dword [esp + 0x48], 0
jmp 0x451203
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
and edx, 0xf7ffffff
mov ecx, edx
or ecx, 0x40000
movzx eax, word [eax + 2]
cmp eax, 0x31
cmovne ecx, edx
mov edx, ecx
or edx, 0xf0000
cmp eax, 0x32
cmovne edx, ecx
mov dword [esp + 0x24], edx
jmp case.0x450c75.68
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x20], eax
mov byte [esp + 0x17], 1
jmp 0x4511fc
mov eax, dword [esp + 0xc]
add eax, 2
cmp word [eax], 0
je case.0x450c75.68
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.0041a370
mov ecx, dword [esp + 0xc]
add ecx, 2
mov dword [esp + 0x50], eax
push 0x2d
push ecx
call dword [esp + 0x5c]
add esp, 8
test eax, eax
je case.0x450c75.68
mov ecx, eax
add eax, 2
cmp word [eax], 0
je 0x451203
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.0041a370
mov dword [esp + 0x6c], eax
jmp case.0x450c75.68
mov byte [esp + 0x11], 0
jmp case.0x450c75.68
mov ecx, dword [esp + 0xc]
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je case.0x450c75.68
mov esi, edx
mov dword [esp + 0xc], ecx
test esi, 0xffffff80
jne 0x45103f
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x45103f
and esi, 0xffffffdf
cmp esi, 0x4d
je 0x4510a6
cmp esi, 0x53
je 0x451076
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [edi], eax
cmp byte [ebp + 0x20], 0
jne case.0x450c75.68
push 0x60
push dword [0x4fdb64]
push eax
call dword [esp + 0x48]
mov dword [edi], eax
jmp case.0x450c75.68
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ecx, dword [esp + 0x10]
mov edx, eax
add esp, 4
mov dword [esp + 0x44], edx
test edx, edx
jns 0x451203
mov dword [esp + 0x44], 0
jmp 0x451203
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ecx, dword [esp + 0x10]
mov edx, eax
add esp, 4
mov dword [esp + 0x4c], edx
test edx, edx
jns 0x451203
mov dword [esp + 0x4c], 0
jmp 0x451203
push 4
push str.Hide
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4510ff
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x1b], 1
add ecx, 6
jmp 0x451203
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [edi + 4], eax
cmp byte [ebp + 0x20], 0
jne case.0x450c75.68
push 0x60
push dword [0x4fdb64]
push eax
call dword [esp + 0x48]
mov dword [edi + 4], eax
jmp case.0x450c75.68
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x64], eax
jmp 0x4511fc
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x60], eax
jmp 0x4511fc
mov ecx, dword [esp + 0xc]
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je case.0x450c75.68
mov esi, edx
mov dword [esp + 0xc], ecx
test esi, 0xffffff80
jne 0x451196
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x451196
and esi, 0xffffffdf
add esi, 0xffffffbe
cmp esi, 0x17
ja case.0x450c75.68
movzx eax, byte [esi + 0x451c6c]
jmp dword [eax*4 + 0x451c58]
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [edi + 0x1c], eax
jmp 0x4511fc
cmp byte [ebp + 0x20], 0
je case.0x450c75.68
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [edi + 0x18], eax
jmp 0x4511fc
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [edi + 0xc], eax
jmp 0x4511fc
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [edi + 0x10], eax
add esp, 4
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx + 2]
add ecx, 2
mov dword [esp + 0xc], ecx
mov ecx, eax
test ax, ax
jne 0x450c44
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, eax
push 0x5a
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x11
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x168]
push eax
push 0x40
push esi
call dword [sym.imp.GDI32.dll_GetTextFaceW]
lea eax, [esp + 0x1f4]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x1c]
cmp eax, 1
jge 0x45129f
cmp eax, 0x80000000
je 0x4512a3
mov ecx, dword [edi + 0x18]
cmp ecx, 1
jge 0x45129f
cmp ecx, 0x80000000
jne 0x4512a9
test eax, eax
je 0x4512a9
cmp dword [edi + 0x18], 0
jne 0x4512b9
mov dword [edi + 0x18], 0
xor eax, eax
mov dword [edi + 0x1c], 0
cmp byte [ebp + 0x20], 0
je 0x45146d
mov ecx, dword [esp + 0x2c]
cmp word [ecx], 0
je 0x45146d
test eax, eax
je 0x45146d
mov byte [esp + 0x34], 0
mov ecx, dword [esp + 0x2c]
lea eax, [edi + 0x24]
push 0
push 0
push dword [esp + 0x3c]
push 0
push eax
xor eax, eax
cmp dword [edi + 0x1c], 0x80000000
cmovne eax, dword [edi + 0x1c]
xor edx, edx
cmp dword [edi + 0x18], 0x80000000
push eax
cmovne edx, dword [edi + 0x18]
call fcn.004b2a90
add esp, 0x18
mov dword [edi + 0x28], eax
test eax, eax
jne 0x45132b
cmp byte [esp + 0x34], al
jne 0x45146d
mov byte [esp + 0x34], 1
jmp 0x4512de
cmp dword [edi + 0x1c], 0
jl 0x45133b
cmp dword [edi + 0x18], 0
jge 0x45146d
cmp dword [edi + 0x24], 0
je 0x451367
lea ecx, [esp + 0xd4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x45146d
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x45146d
lea ecx, [esp + 0xbc]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x451451
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
jne 0x4513d4
mov ecx, dword [edi + 0x18]
test ecx, ecx
jle 0x4513d4
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x451441
movd xmm1, dword [esp + 0xc4]
movd xmm0, eax
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
addsd xmm1, qword [0x4f3130]
cvttsd2si eax, xmm1
mov dword [edi + 0x1c], eax
jmp 0x451441
mov ecx, dword [edi + 0x18]
cmp ecx, 0xffffffff
jne 0x45141e
test eax, eax
jle 0x45141e
mov edx, dword [esp + 0xc4]
test edx, edx
je 0x451441
movd xmm1, dword [esp + 0xc0]
cvtdq2pd xmm1, xmm1
movd xmm0, edx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
addsd xmm1, qword [0x4f3130]
cvttsd2si ecx, xmm1
jmp 0x45143e
cmp eax, 0x80000000
jne 0x45142f
mov eax, dword [esp + 0xc4]
mov dword [edi + 0x1c], eax
cmp ecx, 0x80000000
jne 0x451441
mov ecx, dword [esp + 0xc0]
mov dword [edi + 0x18], ecx
cmp dword [edi], 0x80000000
jne 0x451451
mov eax, dword [edi + 0xc]
lea eax, [ecx + eax*2]
mov dword [edi], eax
cmp dword [edi + 0x24], 1
jne 0x45146d
push dword [esp + 0xe4]
mov esi, dword [esp + 0x5c]
call esi
push dword [esp + 0xe0]
call esi
mov ecx, dword [edi]
cmp ecx, 0x80000000
jne 0x45148c
push 0x60
push dword [0x4fdb64]
push 0x12c
call dword [esp + 0x48]
mov dword [edi], eax
mov ecx, eax
cmp dword [edi + 0x1c], 0x80000000
jne 0x45149c
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 4]
mov edx, 0x1f4
cmp eax, 0x80000000
cmove eax, edx
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_CreateFontW]
cmp word [eax], 0
je 0x4515f8
movd xmm0, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
cvtdq2pd xmm0, xmm0
test eax, eax
je 0x4514f6
push 0x48
push dword [esp + 0x2c]
push eax
call dword [esp + 0x48]
mov ecx, eax
neg ecx
jmp 0x451502
mulsd xmm0, qword [0x4f3150]
cvttsd2si ecx, xmm0
mov eax, dword [esp + 0x4c]
mov esi, 0x258
mov edx, dword [ebp + 0x18]
test eax, eax
cmovne esi, eax
lea eax, [esp + 0x168]
cmp word [edx], 0
cmovne eax, edx
push eax
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push esi
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x4515a1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x45155e
push 0x48
push dword [esp + 0x2c]
push eax
call dword [esp + 0x48]
neg eax
jmp 0x451574
movd xmm0, dword [esp + 0x38]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4f3150]
cvttsd2si eax, xmm0
lea ecx, [esp + 0x168]
push ecx
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push esi
mov esi, dword [sym.imp.GDI32.dll_CreateFontW]
push 0
push 0
push 0
push eax
call esi
mov dword [edi + 0x38], eax
jmp 0x4515a7
mov esi, dword [sym.imp.GDI32.dll_CreateFontW]
mov eax, dword [edi + 0x38]
test eax, eax
mov ecx, dword [esp + 0x30]
cmovne ecx, eax
push ecx
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
movaps xmm0, xmmword [esp + 0x80]
mov ecx, dword [edi + 0xc]
movd eax, xmm0
movaps xmmword [esp + 0x70], xmm0
sub dword [esp + 0x78], ecx
add eax, ecx
push 0x450
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DrawTextW]
mov dword [edi + 0x14], eax
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x44]
mov ecx, dword [ebp + 0x18]
jne 0x451612
test edx, edx
jne 0x451612
test ecx, ecx
je 0x451694
cmp word [ecx], 0
lea eax, [esp + 0x168]
cmovne eax, ecx
push eax
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push edx
push 0
push 0
push 0
push 0x48
push dword [esp + 0x60]
push dword [esp + 0x5c]
call dword [esp + 0x7c]
neg eax
push eax
call esi
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x451694
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
test ecx, ecx
jne 0x451662
test eax, eax
je 0x451694
lea edx, [esp + 0x168]
push edx
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0x48
push dword [esp + 0x60]
push ecx
call dword [esp + 0x7c]
neg eax
push eax
call esi
mov dword [edi + 0x3c], eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x4516a2
mov eax, dword [edi + 0x10]
add eax, ecx
jmp 0x4516a4
xor eax, eax
mov esi, dword [edi + 0x10]
xor edx, edx
lea ecx, [eax + esi]
mov eax, dword [edi + 0x1c]
test eax, eax
mov dword [esp + 0x34], ecx
cmove esi, edx
add esi, ecx
add esi, eax
cmp dword [edi + 4], 0x80000000
mov dword [esp + 0x48], esi
jne 0x451735
mov eax, dword [ebp + 0xc]
cmp word [eax], dx
je 0x451721
mov eax, dword [edi + 0x3c]
test eax, eax
mov ecx, dword [esp + 0x30]
cmovne ecx, eax
push ecx
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
movaps xmm0, xmmword [esp + 0x80]
mov ecx, dword [edi + 0xc]
movd eax, xmm0
movaps xmmword [esp + 0x70], xmm0
sub dword [esp + 0x78], ecx
add eax, ecx
push 0x410
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x451723
xor eax, eax
lea ecx, [eax + esi]
mov eax, dword [edi + 0x10]
add eax, ecx
mov dword [edi + 4], eax
mov dword [esp + 0x8c], eax
push dword [esp + 0x54]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x451be1
push dword [esp + 0x64]
movaps xmm0, xmmword [esp + 0x84]
lea eax, [esp + 0xa4]
push 0
push dword [esp + 0x2c]
movaps xmmword [esp + 0xac], xmm0
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [esp + 0xa8]
lea eax, [esp + 0x90]
mov edi, dword [esp + 0xac]
sub esi, dword [esp + 0xa0]
sub edi, dword [esp + 0xa4]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x9c]
mov edx, eax
sub ecx, dword [esp + 0x94]
cmp esi, eax
cmovle edx, esi
cmp edi, ecx
mov dword [esp + 0x4c], edx
mov edx, ecx
cmovle edx, edi
cmp dword [esp + 0x60], 0x80000000
mov dword [esp + 0x38], edx
jne 0x4517ff
sub eax, dword [esp + 0x4c]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
add eax, dword [esp + 0x90]
mov dword [esp + 0x60], eax
cmp dword [esp + 0x5c], 0x80000000
jne 0x45181d
sub ecx, edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x94]
mov dword [esp + 0x5c], eax
mov edi, dword [0x4f90f4]
mov esi, dword [edi + 0x4c]
test esi, esi
je 0x451861
cmp dword [esi + 4], 0
jne 0x4518b5
mov ecx, dword [esi]
cmp word [ecx], 0
jne 0x451876
add dword [esi + 0x20], 0xffffffff
jne 0x45185a
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0xd8
push esi
call fcn.004ccae4
add esp, 8
mov dword [edi + 0x4c], 0
xor ecx, ecx
cmp byte [esp + 0x11], 0
je 0x4518bd
mov eax, dword [0x4fb9e8]
test ecx, ecx
cmovne eax, ecx
jmp 0x4518bf
call fcn.00487910
mov dword [esp + 0x58], eax
test eax, eax
je 0x451861
inc dword [eax + 0x20]
mov esi, dword [edi + 0x4c]
add dword [esi + 0x20], 0xffffffff
jne 0x4518ac
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0xd8
push esi
call fcn.004ccae4
mov eax, dword [esp + 0x60]
add esp, 8
mov dword [edi + 0x4c], eax
mov edi, dword [0x4f90f4]
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax + 4]
jmp 0x451863
xor eax, eax
push 0
push dword [0x4fba50]
push 0
push eax
push dword [esp + 0x48]
push dword [esp + 0x60]
push dword [esp + 0x74]
push dword [esp + 0x7c]
push dword [esp + 0x44]
push dword [esp + 0x8c]
push str.AutoHotkey2
push dword [esp + 0x90]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x20], eax
test eax, eax
je 0x451be1
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
and edx, 0x80000
jne 0x45191f
cmp byte [esp + 0x11], 0
jne 0x451965
mov edi, dword [0x4fe6bc]
test edi, edi
je 0x451931
mov ecx, dword [0x4fe6c0]
jmp 0x45193d
mov edi, dword [0x4fbbb0]
mov ecx, dword [0x4fbbb4]
test edx, edx
je 0x451953
push ecx
push 0
push 0x80
push eax
call esi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
cmp byte [esp + 0x11], 0
jne 0x451965
push edi
push 1
push 0x80
push eax
call esi
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
mov ecx, dword [edx + 0xc]
mov dword [edx + 4], eax
mov dword [edx], edi
lea eax, [ecx + ecx]
sub edi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x54], edi
cmp word [eax], 0
je 0x4519fc
push 0
push dword [0x4fba50]
xor eax, eax
cmp byte [esp + 0x1a], al
push 0
push dword [edx + 0x20]
setne al
push dword [edx + 0x14]
or eax, 0x50000080
push edi
push dword [edx + 0x10]
push ecx
push eax
push dword [ebp + 0x10]
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push 1
mov dword [ecx + 0x30], eax
mov ecx, dword [ecx + 0x38]
test ecx, ecx
cmovne edx, ecx
push edx
push 0x30
push eax
call esi
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0xc]
cmp byte [ebp + 0x20], 0
jne 0x451b59
mov eax, dword [edx + 0x1c]
test eax, eax
jle 0x451b59
push 0
push 0
push 0
push dword [edx + 0x20]
push eax
push edi
push dword [esp + 0x4c]
push ecx
push 0x50000001
push 0
push str.msctls_progress32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x2c], edx
test edx, edx
je 0x451b5d
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x6c]
test ecx, ecx
jne 0x451a59
test eax, eax
je 0x451a95
cmp ecx, 0xffffffff
jle 0x451a8b
cmp ecx, 0x10000
jge 0x451a8b
cmp eax, 0xffffffff
jle 0x451a8b
cmp eax, 0x10000
jge 0x451a8b
movzx ecx, ax
mov eax, dword [esp + 0x50]
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push 0
push 0x401
jmp 0x451a92
push eax
push ecx
push 0x406
push edx
call esi
cmp dword [esp + 0x40], 0xff000000
je 0x451afa
mov edx, dword [esp + 0x14]
push str.uxtheme
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x451ae2
push str.SetWindowTheme
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x451adb
push 0x4cfc40
push 0x4cfc40
push dword [esp + 0x60]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0x40]
mov eax, dword [esp + 0x18]
push 0
push 0x409
push dword [eax + 0x2c]
call esi
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x44]
cmp eax, 0xff000000
je 0x451b19
push eax
push 0
push 0x2001
push dword [ecx + 0x2c]
call esi
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
mov eax, dword [ecx + 0x2c]
push 0
je 0x451b3e
push dword [esp + 0x20]
push 0x402
push eax
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
jmp 0x451b5d
push 0
push 0x408
push eax
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
jmp 0x451b5d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
push 0
push dword [0x4fba50]
push 0
push dword [eax + 0x20]
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
sub eax, ecx
push eax
push edi
mov edi, dword [esp + 0x2c]
xor eax, eax
cmp byte [esp + 0x32], al
push ecx
setne al
push dword [edi + 0xc]
or eax, 0x50000080
push eax
push dword [ebp + 0xc]
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x34], eax
test eax, eax
je 0x451bc2
mov ecx, dword [edi + 0x3c]
test ecx, ecx
mov edx, dword [esp + 0x30]
push 1
cmovne edx, ecx
push edx
push 0x30
push eax
call esi
cmp byte [esp + 0x1b], 0
jne 0x451bd4
push 4
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push esi
mov ecx, dword [esp + 0x3c]
push 0
push str.Max_window_number_is_10.
call fcn.0044e880
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c