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

Disassembly:
push 0xffffffffffffffff
push 0x59fa08
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [esi + 0x74]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x511568
cmp ebx, 0xfffffffe
jne 0x511568
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x7c]
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x64]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x84]
lea eax, [eax + edx*2]
push 0xf
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
call ebp
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0055ba58
mov ebx, dword [esi + 0x80]
mov edx, dword [esi + 0x64]
sub ebx, dword [esi + 0x78]
push 0x10
mov dword [esp + 0x14], edx
call ebp
mov edx, dword [esi + 0x7c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push 1
sub ebx, ecx
mov ecx, dword [esi + 0x78]
push ebx
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, edi
call fcn.0055bf0e
mov ebx, dword [esi + 0x80]
mov eax, dword [esi + 0x64]
sub ebx, dword [esi + 0x78]
push 0x14
mov dword [esp + 0x14], eax
call ebp
mov edx, dword [esi + 0x7c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push 1
sub ebx, ecx
mov ecx, dword [esi + 0x78]
push ebx
add edx, 1
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, edi
call fcn.0055bf0e
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ebx, 0xfffffffe
cmp dword [esi + 0x6c], ebx
jne 0x5114db
cmp dword [esi + 0x68], ebx
je 0x5114db
push 0x16
call ebp
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x5114e5
push 0xf
call ebp
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call fcn.0055ba58
cmp dword [esi + 0x68], ebx
jne 0x511500
mov ecx, dword [edi + 4]
push 0xf
push 4
lea eax, [esp + 0x30]
push eax
push ecx
jmp 0x511512
cmp dword [esi + 0x6c], ebx
jne 0x511518
mov eax, dword [edi + 4]
push 0xf
push 2
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xa8]
push eax
mov ecx, edi
call edx
push 1
mov ecx, edi
mov ebx, eax
call fcn.0055aeb6
mov esi, dword [esi + 0x74]
mov edx, dword [esi - 0xc]
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
push 0x25
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push ebx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov ecx, dword [esi + 0x70]
cmp dword [ecx - 0xc], 0
je 0x511703
cmp ebx, 0xfffffffd
jne 0x511703
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
lea ebx, [esi + 0x88]
call ebp
push eax
push ebx
mov ecx, edi
call fcn.0055ba58
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call ebx
mov eax, 0xfffffffd
cmp dword [esi + 0x6c], eax
jne 0x5115de
cmp dword [esi + 0x68], eax
je 0x5115de
push 0x16
call ebp
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x5115e8
push 0xf
call ebp
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call fcn.0055ba58
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x64]
add eax, eax
mov dword [esp + 0x4c], ecx
mov ecx, eax
neg ecx
push ecx
neg eax
mov dword [esp + 0x54], edx
push eax
lea edx, [esp + 0x50]
push edx
call ebx
push 0x10
call ebp
push eax
push 1
push 0
lea ecx, [esp + 0x1c]
call fcn.0055b9c1
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x64], 0
call fcn.0055b905
mov edx, dword [edi]
mov ebp, eax
mov eax, dword [edx + 0x24]
push 5
mov ecx, edi
call eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
push ebp
mov ecx, edi
call fcn.0055b905
mov eax, 0xfffffffd
cmp dword [esi + 0x68], eax
jne 0x511695
mov ecx, dword [edi + 4]
push 0xf
push 4
lea eax, [esp + 0x30]
push eax
push ecx
jmp 0x5116a7
cmp dword [esi + 0x6c], eax
jne 0x5116ad
mov eax, dword [edi + 4]
push 0xf
push 2
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xa8]
push eax
mov ecx, edi
call edx
push 1
mov ecx, edi
mov ebx, eax
call fcn.0055aeb6
mov esi, dword [esi + 0x70]
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x25
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ebx
mov ecx, edi
call edx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
jmp 0x5118da
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
call fcn.00510db0
test eax, eax
je 0x5118df
mov ecx, dword [edi + 8]
push 0x26
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x511755
push 0
lea edx, [esi + 0xb0]
push edx
mov ecx, edi
call fcn.0055b94b
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [esi + 0x6c], ebx
jne 0x511771
cmp dword [esi + 0x68], ebx
je 0x511771
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call ebp
push eax
lea ecx, [esp + 0x3c]
push ecx
jmp 0x511781
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebp
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.0055ba58
cmp dword [esi + 0x68], ebx
jne 0x51179c
mov ecx, dword [edi + 4]
push 0xf
push 4
lea eax, [esp + 0x40]
push eax
push ecx
jmp 0x5117ae
cmp dword [esi + 0x6c], ebx
jne 0x5117b4
mov eax, dword [edi + 4]
push 0xf
push 2
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebx*8 + 0x635900]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
or edx, 0x200
movzx ecx, ah
shl edx, 8
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push edx
lea ecx, [esp + 0x24]
call fcn.0055ba0a
mov dword [esp + 0x60], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CPen.0
push 0x10
mov byte [esp + 0x64], 2
call ebp
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x1c]
call fcn.0055b82d
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0055b905
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov ebx, eax
call fcn.0055b905
mov esi, dword [esi + 0x64]
mov ebp, eax
lea eax, [esi + 1]
mov ecx, eax
neg ecx
push ecx
neg eax
push eax
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
push ebx
mov ecx, edi
call fcn.0055b905
push ebp
mov ecx, edi
call fcn.0055b905
lea ecx, [esp + 0x20]
call fcn.0055b880
lea ecx, [esp + 0x18]
call fcn.0055b880
mov esi, dword [esp + 0x10]
test esi, esi
je 0x5118b3
mov edx, dword [edi + 8]
push 0x26
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x5118b3
push 0
push esi
mov ecx, edi
call fcn.0055b94b
mov byte [esp + 0x60], 1
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0055b880
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
call fcn.0055b880
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x54
ret