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

Disassembly:
push 0xffffffffffffffff
push 0x52db48
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b998]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6c]
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0041dd7d
mov ecx, dword [edi + 0x20]
xor ebp, ebp
push ebp
push ebp
push 0x31
mov ebx, eax
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0041e04f
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
mov esi, dword [esp + 0x70]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x34]
push edx
push ecx
push eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004063d0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x70], esi
mov dword [esp + 0x64], ebp
call fcn.00416df7
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40c88d
push 0x80004005
call fcn.00402a00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x64], 1
call fcn.00416df7
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40c8bc
push 0x80004005
call fcn.00402a00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x54]
mov byte [esp + 0x64], 2
mov dword [esp + 0x1c], ebp
jl 0x40cbd0
push 0x5c
push esi
call fcn.0050cabf
add esp, 8
test eax, eax
jne 0x40c8f7
or ebp, 0xffffffff
jmp 0x40c8fd
sub eax, esi
sar eax, 1
mov ebp, eax
push 0x20
push esi
call fcn.0050cabf
add esp, 8
test eax, eax
jne 0x40c911
or eax, 0xffffffff
jmp 0x40c915
sub eax, esi
sar eax, 1
cmp ebp, 0xffffffff
je 0x40c925
cmp eax, 0xffffffff
je 0x40c930
cmp ebp, eax
jg 0x40c930
jmp 0x40c92e
cmp eax, 0xffffffff
je 0x40cbaf
mov ebp, eax
mov eax, dword [esi - 0xc]
sub eax, ebp
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x78]
call fcn.004060e0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x70], 3
call fcn.00407c70
add esp, 0xc
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
mov byte [esp + 0x64], 4
cmp eax, edi
je 0x40c9c2
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40c9b0
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40c9b0
push eax
call fcn.004063d0
mov dword [esp + 0x28], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40c9a3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x40c9be
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402a50
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x64], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c9e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x78]
call fcn.0040c3a0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
mov byte [esp + 0x64], 5
cmp eax, edi
je 0x40ca77
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40ca65
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40ca65
push eax
call fcn.004063d0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40ca5c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebp + 0x10]
mov dword [esp + 0x70], esi
jmp 0x40ca77
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.00402a50
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 0xc]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x3c]
push ecx
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x54]
jge 0x40c8e3
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00407fb0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x74]
call fcn.00406440
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x40cb31
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40cb0b
cmp dword [edx - 8], 0
jl 0x40cbc6
xor eax, eax
mov dword [edx - 0xc], 0
mov word [edx], ax
jmp 0x40cb31
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x70]
call fcn.0040c300
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x38]
push str._n
push edx
call fcn.0040c600
add esp, 0xc
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 6
call fcn.00406440
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x70]
mov eax, dword [esi - 0xc]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x44]
push ecx
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x44]
inc dword [esp + 0x1c]
cmp eax, dword [esp + 0x54]
jge 0x40c8e3
cmp dword [esp + 0x1c], 0
je 0x40cbd0
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00407fb0
jmp 0x40cbde
push 0x80070057
call fcn.00402a00
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406440
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
push edi
call fcn.00415c2e
lea eax, [edi - 0x10]
mov byte [esp + 0x64], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cc0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc56
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret