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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b4a6
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x4606b0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x3c], ebx
cmp ebx, 0xffffffff
je 0x410b96
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00415588
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410822
push 0x80004005
call fcn.00407b00
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 + 0xe0], 0
mov ecx, dword [esi + 0x18]
push ecx
call fcn.004144fc
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x6c]
push ecx
push 0
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x20]
push 0x1005
push eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0xa
mov dword [esp + 0x8c], 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esp + 0x78]
and ebx, 2
push 5
mov dword [esp + 0x48], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x4108e5
mov ebx, dword [edi]
push 0xd
add ebx, 0x2c
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov ebx, dword [edi]
push 0xe
add ebx, 0x30
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebx]
mov ecx, edi
call eax
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x34], eax
jmp 0x410903
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x2c]
mov ecx, edi
call eax
mov ebx, dword [edi]
push 8
add ebx, 0x30
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [ebx]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xa8]
push ecx
push 0
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x20]
push 0x1019
push eax
mov dword [esp + 0xb8], 3
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x410b5d
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
lea esp, [esp]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x20]
push 0x101d
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov eax, dword [esi + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esi + 0x18]
dec eax
push eax
dec ecx
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x18]
push edx
push eax
call ebx
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004160fa
mov byte [esp + 0xe0], 1
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push edi
call fcn.00410bb0
test eax, eax
jne 0x410a29
xor ecx, ecx
jmp 0x410a3d
mov ecx, eax
lea edx, [ecx + 1]
mov dword [esp + 0x30], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x410a32
sub ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00407800
mov byte [esp + 0xe0], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [esp + 0x78], 2
mov edx, 1
je 0x410a88
cmp dword [esp + 0x44], 0
je 0x410a88
mov edx, 3
cmp dword [esp + 0x1c], 0
jne 0x410af0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xac]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x98]
push eax
push ecx
call fcn.0041739a
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.004073c0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add edx, 0x14
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov eax, dword [eax - 0xc]
lea ecx, [esp + 0x4c]
jmp 0x410b1e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add eax, 5
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov eax, dword [ecx - 0xc]
lea ecx, [esp + 0x5c]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x24
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc eax
lea ecx, [esp + 0xa8]
push ecx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x20]
push 0x1019
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x410950
mov edx, dword [edi]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0x20]
push eax
mov ecx, edi
call edx
mov dword [esp + 0xe0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4