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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x228
cmp byte [ebp + 0x20], 0
push esi
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0xf], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
je 0x4372e4
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp word [eax], 0
je 0x4372cc
push 0x3a
push eax
call fcn.00492ca4
mov edx, dword [ebp + 0x1c]
mov ecx, eax
add esp, 8
mov dword [esp + 0x38], ecx
mov esi, edx
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x43720d
cmp eax, 9
jne 0x437212
add esi, 2
jmp 0x437200
test ecx, ecx
je 0x43729c
mov eax, ecx
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
cmp eax, 0x20
jae 0x43729c
push eax
push edx
lea eax, [esp + 0x130]
push eax
call fcn.0049ef24
mov eax, dword [esp + 0x24]
add esp, 0xc
xor ecx, ecx
xor edx, edx
push ecx
push 1
mov word [esp + eax*2 + 0x130], cx
push ecx
lea ecx, [esp + 0x134]
call fcn.00478130
add esp, 0xc
test eax, eax
je 0x43729c
mov edx, dword [esp + 0x38]
add edx, 2
mov ecx, edx
call fcn.0040e490
mov esi, eax
lea ecx, [esp + 0x128]
cmp word [esi], 0
cmove edx, esi
mov dword [ebp + 0x1c], edx
call fcn.004124b0
sub eax, 1
mov dword [esp + 0x14], eax
js 0x437296
cmp eax, 0xa
jl 0x43729c
push edi
jmp 0x438366
push 0x4c84c4
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x4372b5
mov byte [esp + 0xf], 1
jmp 0x4372cc
push str.Show
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x4372cc
mov byte [esp + 0x10], 1
imul esi, dword [esp + 0x14], 0x4c
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
add esi, 0x4dba18
jmp 0x4373b9
mov esi, dword [ebp + 8]
push 0x3a
push esi
call fcn.00492ca4
mov edi, eax
add esp, 8
test edi, edi
jne 0x4372fc
mov edi, esi
jmp 0x437330
mov ecx, esi
call fcn.00403e00
test al, al
je 0x437316
push 0x10
push 0
push esi
call fcn.00495c2d
add esp, 0xc
jmp 0x43731f
push esi
call fcn.00495cca
add esp, 4
dec eax
mov dword [esp + 0x14], eax
cmp eax, 9
ja 0x438365
add edi, 2
movzx eax, word [edi]
cmp eax, 0x20
je 0x43732d
cmp eax, 9
je 0x43732d
push 0x4c84c4
push edi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x43735e
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xf], 1
mov dword [esp + 0x24], ecx
jmp 0x4373ae
push str.Show
push edi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x43737f
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x10], 1
mov dword [esp + 0x24], ecx
jmp 0x4373ae
push 0
push 1
push 0
mov edx, 1
mov ecx, edi
call fcn.00478130
add esp, 0xc
test eax, eax
je 0x4373a6
mov ecx, edi
call fcn.004124b0
mov byte [esp + 0x11], 1
jmp 0x4373aa
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
imul esi, dword [esp + 0x14], 0x4c
add esi, 0x4dbd10
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4373ce
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4373ce
mov dword [esi + 0x20], eax
cmp byte [esp + 0x10], 0
je 0x4373ff
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4373f2
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4373f2
push 4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
cmp byte [esp + 0xf], 0
jne 0x4374b0
cmp dword [esi + 0x20], 0
je 0x4374b0
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
jne 0x4374b0
mov al, byte [esp + 0x11]
test al, al
jne 0x437433
cmp word [edi], 0
jne 0x4374b0
cmp byte [ebp + 0x20], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x437461
test al, al
je 0x437461
mov ecx, dword [esp + 0x24]
cmp dword [esi + 8], ecx
je 0x437461
mov eax, dword [esi + 0x2c]
mov dword [esi + 8], ecx
test eax, eax
je 0x437461
push 0
push ecx
push 0x402
push eax
call edi
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je 0x437479
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x437479
push eax
push 0
push 0xc
push ecx
call edi
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x43748c
push eax
push 0
push 0xc
push dword [esi + 0x34]
call edi
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x4373f2
push eax
push dword [esi + 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 [esi + 0x20]
test eax, eax
je 0x4374be
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x38]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4374d4
push eax
call ecx
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4374de
push eax
call ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4374ec
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x437508
cmp dword [esi + 0x24], 0
push eax
jne 0x437502
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x437508
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0x4c
push 0
push esi
call fcn.00493930
add esp, 0xc
cmp byte [esp + 0xf], 0
jne 0x4373f2
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x58], eax
cmp word [eax], 0
jne 0x437548
mov eax, dword [0x4deb9c]
mov dword [esp + 0x58], eax
test eax, eax
je 0x437540
cmp word [eax], 0
jne 0x437548
mov dword [esp + 0x58], 0x4c602c
xor eax, eax
mov byte [esp + 0xf], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov al, byte [ebp + 0x20]
mov byte [esp + 0x10], 1
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], 0x88c00000
mov dword [esp + 0x54], 8
mov dword [esp + 0x50], closesocket
mov dword [esp + 0x4c], closesocket
mov dword [esp + 0x38], 0xff000000
mov dword [esi + 0x44], 0xff000000
mov dword [esi + 0x48], 0xff000000
mov dword [esi + 4], closesocket
test al, al
je 0x4375c9
mov dword [esi], closesocket
mov dword [esi + 0x1c], closesocket
jmp 0x4375e8
push 0x60
push dword [0x4de07c]
push 0x12c
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi], eax
mov al, byte [ebp + 0x20]
mov dword [esi + 0x1c], 0x14
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x18], closesocket
cmp word [ecx], 0
jne 0x437615
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
jne 0x437615
test al, al
je 0x437615
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
jmp 0x437623
mov dword [esi + 0xc], 0xa
mov dword [esi + 0x10], 5
cmp word [edi], 0
je 0x437a92
nop dword [eax]
movzx eax, word [edi]
mov dword [esp + 0x2c], eax
test eax, 0xffffff80
jne 0x437654
push 2
push eax
call fcn.00498ea3
add esp, 8
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x437654
and eax, 0xffffffdf
movzx eax, ax
add eax, 0xffffffbf
cmp eax, 0x19
ja case.0x43766a.68
movzx eax, byte [eax + 0x4383b8]
jmp dword [eax*4 + 0x438380]
and dword [esp + 0x54], 0xfffffff7
jmp case.0x43766a.68
mov edx, dword [esp + 0x20]
movzx eax, word [edi + 2]
and edx, 0xff3fffff
mov dword [esp + 0x20], edx
cmp eax, 0x31
jne 0x4376a1
or edx, 0x800000
mov dword [esp + 0x20], edx
jmp case.0x43766a.68
cmp eax, 0x32
jne case.0x43766a.68
or edx, 0x400000
mov dword [esp + 0x20], edx
jmp case.0x43766a.68
cmp word [edi + 2], 0
je case.0x43766a.68
mov cx, word [edi + 2]
add edi, 2
call fcn.0040e460
movzx eax, ax
cmp eax, 0x42
je 0x4376fa
cmp eax, 0x54
je 0x4376fa
cmp eax, 0x57
je 0x4376fa
cmp word [edi], 0x30
setne byte [esp + 0x12]
cmp word [edi + 2], 0x30
setne byte [esp + 0x10]
jmp case.0x43766a.70
push 0x1f
lea eax, [edi + 2]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.0049ef24
add esp, 0xc
lea ecx, [esp + 0xe0]
xor eax, eax
mov edx, 0x4c89b4
mov word [esp + 0x11e], ax
call fcn.004053e1
test eax, eax
je 0x437734
xor ecx, ecx
mov word [eax], cx
lea ecx, [esp + 0xe0]
call fcn.00479440
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x437790
lea ecx, [esp + 0xe0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437753
sub ecx, edx
sar ecx, 1
cmp ecx, 6
jbe 0x437771
xor eax, eax
mov word [esp + 0xec], ax
push 0x10
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.00495c2d
add esp, 0xc
mov ecx, eax
call fcn.00436cb0
mov dword [esp + 0x1c], eax
mov cx, word [edi]
call fcn.0040e460
movzx eax, ax
cmp eax, 0x42
je 0x4377c6
cmp eax, 0x54
je 0x4377bd
cmp eax, 0x57
jne 0x4377ce
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x40], eax
jmp 0x4377ce
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x48], eax
jmp 0x4377ce
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0xe0]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4377e0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
cmp word [edi + 2], 0
je case.0x43766a.68
mov cx, word [edi + 2]
add edi, 2
call fcn.0040e460
movzx eax, ax
cmp eax, 0x4d
je 0x437841
cmp eax, 0x53
jne case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov ecx, eax
add esp, 4
mov dword [esp + 0x44], ecx
test ecx, ecx
jns case.0x43766a.68
mov dword [esp + 0x44], 0
jmp case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov ecx, eax
add esp, 4
mov dword [esp + 0x40], ecx
test ecx, ecx
jns case.0x43766a.68
mov dword [esp + 0x40], 0
jmp case.0x43766a.68
mov edx, dword [esp + 0x20]
movzx eax, word [edi + 2]
and edx, 0xf7ffffff
mov ecx, edx
or ecx, 0x40000
cmp eax, 0x31
cmovne ecx, edx
mov edx, ecx
or edx, 0xf0000
cmp eax, 0x32
cmovne edx, ecx
mov dword [esp + 0x20], edx
jmp case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov dword [esp + 0x28], eax
mov byte [esp + 0x15], 1
jmp 0x437a82
cmp word [edi + 2], 0
je case.0x43766a.68
add edi, 2
mov ecx, edi
call fcn.004124b0
lea ecx, [edi + 2]
mov dword [esp + 0x3c], eax
push 0x2d
push ecx
call fcn.00492ca4
add esp, 8
test eax, eax
je case.0x43766a.68
cmp word [eax + 2], 0
mov edi, eax
je case.0x43766a.68
lea edi, [eax + 2]
mov ecx, edi
call fcn.004124b0
mov dword [esp + 0x14], eax
jmp case.0x43766a.68
mov byte [esp + 0xf], 0
jmp case.0x43766a.68
cmp word [edi + 2], 0
je case.0x43766a.68
mov cx, word [edi + 2]
add edi, 2
call fcn.0040e460
movzx eax, ax
cmp eax, 0x4d
je 0x437981
cmp eax, 0x53
je 0x43795a
push edi
call fcn.00495cca
add esp, 4
mov dword [esi], eax
cmp byte [ebp + 0x20], 0
jne case.0x43766a.68
push 0x60
push dword [0x4de07c]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi], eax
jmp case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
jns case.0x43766a.68
mov dword [esp + 0x34], 0
jmp case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov ecx, eax
add esp, 4
mov dword [esp + 0x30], ecx
test ecx, ecx
jns case.0x43766a.68
mov dword [esp + 0x30], 0
jmp case.0x43766a.68
push 4
push str.Hide
push edi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne 0x4379c9
mov byte [esp + 0x13], 1
add edi, 6
jmp case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
add esp, 4
mov dword [esi + 4], eax
cmp byte [ebp + 0x20], 0
jne case.0x43766a.68
push 0x60
push dword [0x4de07c]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 4], eax
jmp case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov dword [esp + 0x54], eax
jmp 0x437a82
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov dword [esp + 0x50], eax
jmp 0x437a82
cmp word [edi + 2], 0
je case.0x43766a.68
mov cx, word [edi + 2]
add edi, 2
call fcn.0040e460
movzx eax, ax
add eax, 0xffffffbe
cmp eax, 0x17
ja case.0x43766a.68
movzx eax, byte [eax + 0x4383e8]
jmp dword [eax*4 + 0x4383d4]
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov dword [esi + 0x1c], eax
jmp 0x437a82
cmp byte [ebp + 0x20], 0
je case.0x43766a.68
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov dword [esi + 0x18], eax
jmp 0x437a82
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov dword [esi + 0xc], eax
jmp 0x437a82
lea eax, [edi + 2]
push eax
call fcn.00495cca
mov dword [esi + 0x10], eax
add esp, 4
add edi, 2
cmp word [edi], 0
jne 0x437630
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov edi, eax
push 0x5a
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x11
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x168]
push eax
push 0x40
push edi
call dword [sym.imp.GDI32.dll_GetTextFaceW]
lea eax, [esp + 0x1f4]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x18], eax
cmp ecx, 1
jge 0x437b1b
cmp ecx, 0x80000000
je 0x437b1b
mov eax, dword [esi + 0x18]
cmp eax, 1
jge 0x437b1b
cmp eax, 0x80000000
jne 0x437b25
test ecx, ecx
je 0x437b25
cmp dword [esi + 0x18], 0
jne 0x437b33
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
cmp byte [ebp + 0x20], 0
je 0x437cf7
mov ecx, dword [ebp + 0x1c]
cmp word [ecx], 0
je 0x437cf7
cmp dword [esi + 0x1c], 0
je 0x437cf7
mov byte [esp + 0x2c], 0
lea edi, [esi + 0x24]
nop dword [eax]
mov eax, dword [esi + 0x1c]
xor edx, edx
push 0
push 0
push dword [esp + 0x34]
cmp eax, 0x80000000
mov dword [esp + 0x68], 0
push 0
cmove eax, edx
mov edx, dword [esi + 0x18]
cmp edx, 0x80000000
push edi
cmove edx, dword [esp + 0x70]
push eax
call fcn.00479900
add esp, 0x18
mov dword [esi + 0x28], eax
test eax, eax
jne 0x437bb2
cmp byte [esp + 0x2c], al
jne 0x437cf7
mov ecx, dword [ebp + 0x1c]
mov byte [esp + 0x2c], 1
jmp 0x437b60
cmp dword [esi + 0x1c], 0
jl 0x437bc2
cmp dword [esi + 0x18], 0
jge 0x437cf7
cmp dword [edi], 0
je 0x437be5
lea ecx, [esp + 0xcc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x437cf7
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x437cf7
lea ecx, [esp + 0xb4]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x437cda
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x437c5a
mov ecx, dword [esi + 0x18]
test ecx, ecx
jle 0x437c5a
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x437cc7
movd xmm1, dword [esp + 0xbc]
movd xmm0, eax
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
addsd xmm1, qword [0x4d30c8]
cvttsd2si eax, xmm1
mov dword [esi + 0x1c], eax
jmp 0x437cc7
mov ecx, dword [esi + 0x18]
cmp ecx, 0xffffffff
jne 0x437ca4
test eax, eax
jle 0x437ca4
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x437cc7
movd xmm1, dword [esp + 0xb8]
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
addsd xmm1, qword [0x4d30c8]
cvttsd2si eax, xmm1
jmp 0x437cc4
cmp eax, 0x80000000
jne 0x437cb5
mov eax, dword [esp + 0xbc]
mov dword [esi + 0x1c], eax
cmp ecx, 0x80000000
jne 0x437cc7
mov eax, dword [esp + 0xb8]
mov dword [esi + 0x18], eax
cmp dword [esi], 0x80000000
jne 0x437cda
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x18]
lea eax, [eax + ecx*2]
mov dword [esi], eax
cmp dword [edi], 1
jne 0x437cf7
push dword [esp + 0xdc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0xd8]
call edi
cmp dword [esi], 0x80000000
jne 0x437d14
push 0x60
push dword [0x4de07c]
push 0x12c
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi], eax
cmp dword [esi + 0x1c], 0x80000000
jne 0x437d24
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 4]
mov ecx, 0x1f4
cmp eax, 0x80000000
cmove eax, ecx
push eax
push dword [esi]
lea eax, [esp + 0x78]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_CreateFontW]
cmp word [eax], 0
je 0x437e7f
mov eax, dword [esp + 0x40]
test eax, eax
je 0x437d74
push 0x48
push dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
neg ecx
jmp 0x437d8a
movd xmm0, dword [esp + 0x18]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4d30e8]
cvttsd2si ecx, xmm0
mov eax, dword [esp + 0x30]
mov edi, 0x258
mov edx, dword [ebp + 0x18]
test eax, eax
cmovne edi, 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 edi
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x437e2b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x437de8
push 0x48
push dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
jmp 0x437dfe
movd xmm0, dword [esp + 0x18]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4d30e8]
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 edi
mov edi, dword [sym.imp.GDI32.dll_CreateFontW]
push 0
push 0
push 0
push eax
call edi
mov dword [esi + 0x38], eax
jmp 0x437e31
mov edi, dword [sym.imp.GDI32.dll_CreateFontW]
mov eax, dword [esi + 0x38]
test eax, eax
mov ecx, dword [esp + 0x28]
cmovne ecx, eax
push ecx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_SelectObject]
movaps xmm0, xmmword [esp + 0x70]
mov ecx, dword [esi + 0xc]
movd eax, xmm0
movaps xmmword [esp + 0x60], xmm0
sub dword [esp + 0x68], ecx
add eax, ecx
push 0x450
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_DrawTextW]
mov dword [esi + 0x14], eax
mov edx, dword [esp + 0x44]
test edx, edx
jne 0x437e9c
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov ecx, dword [ebp + 0x18]
jne 0x437e9f
test ecx, ecx
je 0x437f2b
jmp 0x437e9f
mov ecx, dword [ebp + 0x18]
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 dword [esp + 0x58]
push 0
push 0
push 0
push 0x48
push dword [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call edi
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x437f2b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
test eax, eax
jne 0x437ef4
test ecx, ecx
je 0x437f2b
lea edx, [esp + 0x168]
push edx
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
push 0x48
push dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call edi
mov dword [esi + 0x3c], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x437f39
mov eax, dword [esi + 0x10]
add eax, ecx
jmp 0x437f3b
xor eax, eax
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
lea edi, [eax + ecx]
xor eax, eax
test edx, edx
mov dword [esp + 0x5c], edi
cmovne eax, ecx
add edi, eax
add edi, edx
cmp dword [esi + 4], 0x80000000
mov dword [esp + 0x2c], edi
jne 0x437fc7
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x437fb6
mov eax, dword [esi + 0x3c]
test eax, eax
mov ecx, dword [esp + 0x28]
cmovne ecx, eax
push ecx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_SelectObject]
movaps xmm0, xmmword [esp + 0x70]
mov ecx, dword [esi + 0xc]
movd eax, xmm0
movaps xmmword [esp + 0x60], xmm0
sub dword [esp + 0x68], ecx
add eax, ecx
push 0x410
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x437fb8
xor eax, eax
lea ecx, [eax + edi]
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esi + 4], eax
mov dword [esp + 0x7c], eax
push dword [esp + 0x8c]
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x437fee
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push dword [esp + 0x54]
movaps xmm0, xmmword [esp + 0x74]
lea eax, [esp + 0xa4]
push 0
push dword [esp + 0x28]
movaps xmmword [esp + 0xac], xmm0
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa0]
mov edi, dword [esp + 0xac]
sub edi, dword [esp + 0xa4]
push 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x94]
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]
sub ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x30]
cmp edx, eax
cmovg edx, eax
cmp edi, ecx
mov dword [esp + 0x30], edx
cmovg edi, ecx
cmp dword [esp + 0x50], 0x80000000
jne 0x438091
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x90]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x4c], 0x80000000
jne 0x4380af
sub ecx, edi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x94]
mov dword [esp + 0x4c], eax
mov ecx, dword [0x4d89c0]
lea ecx, [ecx + 0x4c]
call fcn.0045f910
test eax, eax
je 0x4380ce
mov eax, dword [0x4d89c0]
mov eax, dword [eax + 0x4c]
mov ecx, dword [eax + 4]
jmp 0x4380d0
xor ecx, ecx
cmp byte [esp + 0xf], 0
je 0x4380e3
mov eax, dword [0x4db780]
test ecx, ecx
cmovne eax, ecx
jmp 0x4380e5
xor eax, eax
push 0
push dword [0x4db7c4]
push 0
push eax
push edi
push dword [esp + 0x44]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [esp + 0x40]
push dword [esp + 0x7c]
push str.0616
push dword [esp + 0x80]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, eax
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x437fe4
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and edx, 0x80000
jne 0x43813d
cmp byte [esp + 0xf], 0
jne 0x438185
mov eax, dword [0x4debf4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x438151
mov eax, dword [0x4debf8]
jmp 0x43815f
mov eax, dword [0x4db8e4]
mov dword [esp + 0x18], eax
mov eax, dword [0x4db8e8]
test edx, edx
je 0x43816e
push eax
push 0
push 0x80
push ecx
call edi
cmp byte [esp + 0xf], 0
jne 0x438185
push dword [esp + 0x18]
push 1
push 0x80
push dword [esi + 0x20]
call edi
lea eax, [esp + 0x70]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esi + 4], eax
lea eax, [edx + edx]
mov dword [esi], ecx
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
cmp word [eax], 0
je 0x438204
push 0
push dword [0x4db7c4]
xor eax, eax
cmp byte [esp + 0x18], al
push 0
push dword [esi + 0x20]
setne al
push dword [esi + 0x14]
or eax, 0x50000080
push ecx
push dword [esi + 0x10]
push edx
push eax
push dword [ebp + 0x10]
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [esi + 0x38]
test ecx, ecx
mov edx, dword [esp + 0x28]
push 1
cmovne edx, ecx
mov dword [esi + 0x30], eax
push edx
push 0x30
push eax
call edi
mov ecx, dword [esp + 0x18]
cmp byte [ebp + 0x20], 0
jne 0x4382fd
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x4382fd
push 0
push 0
push 0
push dword [esi + 0x20]
push eax
push ecx
push dword [esp + 0x74]
push dword [esi + 0xc]
push 0x50000001
push 0
push str.msctls_progress32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, eax
mov dword [esi + 0x2c], edx
test edx, edx
je 0x4382fd
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x438261
test ecx, ecx
je 0x438294
jmp 0x43826d
cmp eax, 0xffffffff
jle 0x43828a
cmp eax, 0x10000
jge 0x43828a
cmp ecx, 0xffff
ja 0x43828a
movzx ecx, cx
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push 0
push 0x401
jmp 0x438291
push ecx
push eax
push 0x406
push edx
call edi
cmp dword [esp + 0x38], 0xff000000
je 0x4382ba
push ecx
mov ecx, dword [esi + 0x2c]
call fcn.0047a5d0
add esp, 4
push dword [esp + 0x38]
push 0
push 0x409
push dword [esi + 0x2c]
call edi
mov eax, dword [esi + 0x44]
cmp eax, 0xff000000
je 0x4382d1
push eax
push 0
push 0x2001
push dword [esi + 0x2c]
call edi
cmp byte [esp + 0x11], 0
push 0
je 0x4382ee
push dword [esp + 0x28]
push 0x402
push dword [esi + 0x2c]
call edi
mov eax, dword [esp + 0x24]
jmp 0x4382fa
push 0
push 0x408
push dword [esi + 0x2c]
call edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
push 0
push dword [0x4db7c4]
push 0
push dword [esi + 0x20]
push eax
push dword [esp + 0x2c]
xor eax, eax
cmp byte [esp + 0x2a], al
push ecx
push dword [esi + 0xc]
setne al
or eax, 0x50000080
push eax
push dword [ebp + 0xc]
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x34], eax
test eax, eax
je 0x43835b
mov ecx, dword [esi + 0x3c]
test ecx, ecx
mov edx, dword [esp + 0x28]
push 1
cmovne edx, ecx
push edx
push 0x30
push eax
call edi
cmp byte [esp + 0x13], 0
jmp 0x4373e5
push esi
mov ecx, dword [esp + 0x40]
push 0
push str.Max_window_number_is_10.
call fcn.004351a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c