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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x612e8b
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x67f864]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x58], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
push eax
call fcn.00579630
add esi, 0x1c
push esi
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [edi + 0x98]
mov ecx, dword [edi + 0x94]
push edx
lea eax, [edi + 0x54]
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], eax
call fcn.00512e00
xor ebx, ebx
mov dword [esp + 0x108], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
movsx eax, word [edi + 0x6c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
xor esi, esi
cmp dword [edi + 0x78], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
je 0x5134fd
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, edi
call fcn.00513130
mov dword [esp + 0x1c], ebx
lea esp, [esp]
mov edx, dword [edi + 0x78]
push edx
call fcn.00469660
mov eax, dword [edi + 0x78]
mov ebx, dword [esp + 0x18]
add esp, 4
push eax
mov ecx, ebx
call fcn.00467be0
mov eax, dword [edi + 0x78]
mov esi, dword [eax + 0x28]
mov edx, dword [esp + 0x50]
add esi, dword [eax + 0x24]
mov ecx, dword [eax + 0x34]
sub edx, dword [esp + 0x48]
add ecx, dword [eax + 0x30]
add eax, 0x24
add esp, 4
cmp esi, edx
jg 0x5134e8
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp ecx, eax
jle 0x5134fd
mov eax, dword [esp + 0x1c]
add word [ebx + 0x18], 1
add eax, 1
cmp eax, 3
mov dword [esp + 0x1c], eax
jl 0x5134a0
cmp dword [edi + 0x8c], 0
jne 0x513549
mov eax, dword [edi + 0x20]
push 0xfffffffffffffff6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
test eax, eax
je 0x51363b
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x513534
push eax
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x51363b
mov ecx, dword [ecx + 4]
push eax
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x51363b
mov eax, dword [esp + 0x18]
push eax
push edi
lea ebx, [esp + 0x2c]
call fcn.005132f0
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0056eb4e
cmp edi, eax
jne 0x51363b
cmp dword [edi + 0x88], 0
je 0x5135c2
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5135af
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x88]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
test esi, esi
jle 0x51363b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
sub eax, ecx
sub eax, esi
mov dword [esp + 0x40], edx
cdq
sub eax, edx
sar eax, 1
sub eax, 2
push 0xfffffffffffffffd
neg eax
push eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_InflateRect]
movzx ecx, word [esp + 0x34]
mov dx, word [esp + 0x3c]
mov ax, word [esp + 0x38]
mov ebx, dword [esp + 0x14]
mov word [esp + 0x1c], cx
movzx ecx, word [esp + 0x40]
lea edi, [esp + 0x1c]
mov word [esp + 0x20], dx
mov word [esp + 0x1e], ax
mov word [esp + 0x22], cx
call fcn.00510750
mov edi, dword [esp + 0x58]
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x513670
mov edx, dword [edi + 0x90]
mov ebx, dword [esp + 0x14]
push edx
lea esi, [esp + 0x48]
call fcn.00512d80
mov ecx, dword [esp + 0x18]
push 1
call fcn.00578745
mov ecx, dword [edi + 0x78]
push 0
mov edx, ebx
call fcn.004679e0
add esp, 4
mov ax, word [esp + 0x54]
mov word [edi + 0x6c], ax
mov dword [esp + 0x108], 0xffffffff
mov eax, dword [esp + 0x68]
mov esi, dword [eax + 4]
push eax
call fcn.0056bafc
xor eax, eax
add esp, 4
cmp esi, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
je 0x5136b4
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4