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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x511ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x54a050]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004a8726
mov esi, eax
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [edi + 0x68]
push eax
mov ecx, esi
call edx
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.004a7b93
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x450e66
push 0x80004005
call fcn.00401710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], ebx
lea ecx, [ecx]
mov ebx, dword [edi + 0x54]
lea ecx, [esp + 0x18]
push ecx
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub ebx, 0x10
mov dword [esp + 0x44], esp
mov dword [esp + 0x2c], esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x450eb8
cmp eax, dword [ebx]
jne 0x450eb8
mov edi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x450eee
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x450f55
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 4]
add eax, 1
push eax
add ebx, 0x10
push ebx
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004d2b20
add esp, 0x10
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
add edi, 0x10
mov dword [edx], edi
call fcn.004511f0
test al, al
je 0x450f5a
mov edx, dword [esi + 8]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x44]
mov dword [esp + 0x48], ecx
push edx
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.004a85a3
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x1c]
jle 0x450f46
mov dword [esp + 0x1c], eax
mov edi, dword [ebp + 8]
add ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x450e80
call fcn.00401860
mov eax, dword [esp + 0x48]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edi, dword [edx]
mov dword [esp + 0x2c], eax
imul eax, ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x44], ecx
lea ecx, [edi + ecx + 7]
mov dword [esp + 0x48], eax
lea eax, [ebx + eax + 2]
mov dword [esp + 0x20], ecx
push 1
mov ecx, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], edi
call fcn.004a7f5b
push 0x18
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x58]
call fcn.004a8c20
lea edx, [esp + 0x54]
push edx
mov ecx, esi
mov byte [esp + 0x84], 1
call fcn.004a8b3d
push 0
push 0
push 0
lea ecx, [esp + 0x58]
mov dword [esp + 0x44], eax
call fcn.004a8bd7
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov byte [esp + 0x84], 2
call fcn.004a8b3d
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
sub eax, ebx
push eax
sub ecx, edi
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov ebx, dword [esi]
push 0x17
add ebx, 0x30
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [ebx]
push eax
mov ecx, esi
call edx
push 0
mov ecx, esi
call fcn.004a807a
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x54]
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub ebx, 0x10
mov dword [esp + 0x30], esp
mov dword [esp + 0x30], esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x45106f
cmp eax, dword [ebx]
jne 0x45106f
mov edi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4510a5
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x450f55
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 4]
add eax, 1
push eax
add ebx, 0x10
push ebx
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004d2b20
add esp, 0x10
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
add edi, 0x10
mov dword [edx], edi
call fcn.004511f0
test al, al
je 0x4510e6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edi, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
push ecx
push eax
push edi
push 3
mov ecx, esi
call edx
add dword [esp + 0x14], 1
add edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
jmp 0x451034
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov edi, dword [ebp + 8]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call fcn.004a8567
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
push 0x250
sub edx, eax
push edx
mov edx, dword [esp + 0x74]
sub edx, ecx
push edx
add eax, 1
push eax
add ecx, 1
push ecx
push 0x54dce0
mov ecx, edi
call fcn.004aa257
mov eax, dword [esp + 0x38]
push eax
mov ecx, esi
call fcn.004a8b3d
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.004a8b3d
mov edx, dword [esi]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0x28]
push eax
mov ecx, esi
call edx
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0x80], 1
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
call fcn.004a8a4e
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], esi
call fcn.004a8a4e
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4511d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8