Function at 0x40bfff
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43eaff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x950
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0041aae3
lea eax, [ebx + 0x13c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xc8]
push ecx
mov dword [esp + 0x24], 0x40bfab
call fcn.0040c31f
mov ecx, ebx
call fcn.0040c30f
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00403695
and dword [esp + 0x964], 0
lea eax, [esp + 0x10]
push eax
call fcn.00403612
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x14]
call fcn.004035fd
lea eax, [esp + 0x10]
call fcn.0040c2e9
push eax
push esi
call fcn.0040c2f2
lea eax, [esp + 0x158]
push eax
mov edi, 0x400
push edi
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_GetTextFaceW]
test eax, eax
je 0x40c197
and dword [esp + 0x44], 0
push 0x38
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.0042af40
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x40c197
push 0x74
pop esi
push esi
lea eax, [esp + 0x84]
push 0
push eax
call fcn.0042af40
mov ax, word [esp + 0x6c]
add esp, 0xc
mov word [esp + 0xdc], ax
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0xa0400000
xor eax, eax
movzx ecx, word [esp + eax + 0x158]
mov word [esp + eax + 0x9a], cx
add eax, 2
test cx, cx
jne 0x40c113
push 0x5a
lea ecx, [ebx + 0xc8]
call fcn.0040c30f
mov ecx, eax
call fcn.00403659
mov ecx, eax
test ecx, ecx
je 0x40c197
mov eax, dword [esp + 0xf8]
imul eax, eax, 0xfffffa60
cdq
idiv ecx
mov dword [esp + 0x8c], eax
lea eax, [ebx + 0xc8]
call fcn.0040c2d9
push eax
push 0
lea ecx, [ebx + 0xc8]
call fcn.0042055e
lea eax, [esp + 0x80]
push eax
lea ecx, [ebx + 0xc8]
call fcn.00420589
push 0
push 0
lea ecx, [ebx + 0xc8]
call fcn.0042055e
push 0
push 0xd
push 0x258
lea esi, [ebx + 0x148]
call fcn.0040c6ef
push 1
mov esi, ebx
call fcn.00403c75
push 0
mov edi, 0x407
push edi
mov ecx, ebx
call fcn.0041a2c2
mov ecx, eax
call fcn.0041a45d
lea ecx, [esp + 0x24]
call fcn.00403973
lea ecx, [esp + 0x34]
call fcn.00403973
lea ecx, [esp + 0x24]
call fcn.004037a9
push eax
lea esi, [edi - 4]
push esi
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0041a2c2
mov ecx, eax
call fcn.0040c2c6
lea ecx, [esp + 0x34]
call fcn.004037a9
push eax
push edi
mov ecx, ebx
call fcn.0041a2c2
mov ecx, eax
call fcn.0040c2c6
mov eax, dword [esp + 0x3c]
push dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.004176cb
push esi
mov ecx, ebx
call fcn.0041a2c2
push eax
mov eax, dword [esp + 0x10]
call fcn.0040c2a0
push 0xfffffffffffffff0
push esi
mov ecx, ebx
call fcn.0041a2c2
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffffdff
or eax, 0x100
push eax
push 0xfffffffffffffff0
push esi
mov ecx, ebx
call fcn.0041a2c2
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xa5
push esi
push ebx
call fcn.00403e22
or dword [esp + 0x964], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040366c
mov ecx, dword [esp + 0x95c]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret