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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100aead1
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push esi
push edi
mov eax, dword [0x100e18d0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], vtable.CRgn.0
push 1
mov ecx, ebx
mov dword [esp + 0xb4], edi
call fcn.1005d0e9
mov edx, dword [ebx]
mov eax, dword [esi + 0xf4]
mov edx, dword [edx + 0x30]
push eax
mov ecx, ebx
call edx
cmp byte [esi + 0xb6], 0
je 0x10004d6c
mov eax, dword [esi + 0x20]
push edi
push edi
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.1005db85
jmp 0x10004d72
lea eax, [esi + 0xe8]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x34]
call fcn.1005db99
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
call fcn.1005d5a2
mov eax, dword [esi + 0xe4]
lea edi, [esi + 0xe4]
test eax, eax
je 0x10005286
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x10004dc1
or eax, 0xffffffff
jmp 0x10004ddc
push 0x100bf628
push eax
call fcn.10080676
add esp, 8
test eax, eax
jne 0x10004dd8
or eax, 0xffffffff
jmp 0x10004ddc
sub eax, dword [edi]
sar eax, 1
test eax, eax
setl al
mov byte [esi + 0xd4], al
test al, al
je 0x10004ecd
cmp byte [esi + 0xb3], 0
jne 0x10004e20
push edi
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.10006e00
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xcc], edx
mov byte [esi + 0xb3], 1
cmp byte [esi + 0xb4], 0
je 0x10004e42
mov eax, dword [esp + 0x24]
sub eax, dword [esi + 0xd0]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xe0], eax
cmp byte [esi + 0xb5], 0
je 0x10004e64
mov eax, dword [esp + 0x28]
sub eax, dword [esi + 0xcc]
sub eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xd8], eax
cmp byte [esi + 0xb2], 0
jne 0x10004e8c
mov eax, dword [esi + 0xe0]
mov ecx, dword [esi + 0xd8]
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc0], ecx
mov byte [esi + 0xb2], 1
mov al, byte [esi + 0xbc]
test al, al
je 0x10004e9e
mov edx, dword [esi + 0xc0]
jmp 0x10004ea4
mov edx, dword [esi + 0xd8]
test al, al
je 0x10004eb0
mov esi, dword [esi + 0xc4]
jmp 0x10004eb6
mov esi, dword [esi + 0xe0]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov edi, dword [ebx]
push ecx
push eax
push edx
mov edx, dword [edi + 0x5c]
push esi
mov ecx, ebx
call edx
jmp 0x10005278
call fcn.1005e14e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10004ee7
push 0x80004005
call fcn.10002b30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0xb0], 1
call fcn.1005e14e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10004f19
push 0x80004005
call fcn.10002b30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esi + 0xe4]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 2
call fcn.10003c40
mov al, byte [esi + 0xbc]
test al, al
je 0x10004f57
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x14], ecx
jmp 0x10004f61
mov edx, dword [esi + 0xe0]
mov dword [esp + 0x14], edx
test al, al
je 0x10004f71
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x10], eax
jmp 0x10004f7b
mov ecx, dword [esi + 0xd8]
mov dword [esp + 0x10], ecx
cmp byte [esi + 0xb3], 0
jne 0x10004fb1
xor eax, eax
lea edx, [esp + 0x68]
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
mov eax, dword [ebx + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
add edx, ecx
mov dword [esi + 0xc8], edx
mov eax, dword [esp + 0xc]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x1000522c
jl 0x1000514d
mov ecx, dword [esp + 0xc]
push 0x100bf628
push ecx
call fcn.10080676
add esp, 8
test eax, eax
je 0x1000514d
sub eax, dword [esp + 0xc]
sar eax, 1
mov dword [esp + 0x2c], eax
js 0x1000514d
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x14]
call fcn.10005fc0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 3
call fcn.10003c40
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005039
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x50]
push ecx
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp byte [esi + 0xb4], 0
je 0x1000506f
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x50]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp byte [esi + 0xb5], 0
je 0x1000508d
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x54]
sub eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax - 0xc]
sub eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
dec eax
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.10005f40
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 4
call fcn.10003c40
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100050e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0x5c]
push eax
mov eax, dword [esp + 0x14]
push edi
push eax
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi + 0xc8]
add dword [esp + 0x10], eax
cmp byte [esi + 0xbc], 0
je 0x1000521d
cmp byte [esi + 0xb3], 0
jne 0x1000521d
mov eax, dword [edi - 0xc]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x58]
push ecx
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x58]
cmp eax, dword [esi + 0xd0]
jle 0x10005211
mov dword [esi + 0xd0], eax
jmp 0x10005211
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10003c40
lea ecx, [esp + 0xc]
call fcn.100028a0
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ebx + 8]
push edi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp byte [esi + 0xb4], 0
je 0x1000519a
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp byte [esi + 0xb5], 0
je 0x100051ba
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
jmp 0x100051be
mov eax, dword [esp + 0x10]
mov edx, dword [edi - 0xc]
push edx
mov edx, dword [esp + 0x18]
push edi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x5c]
push edx
mov ecx, ebx
call eax
cmp byte [esi + 0xbc], 0
je 0x1000521d
cmp byte [esi + 0xb3], 0
jne 0x1000521d
mov eax, dword [edi - 0xc]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x60]
push ecx
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x60]
cmp eax, dword [esi + 0xd0]
jle 0x1000520a
mov dword [esi + 0xd0], eax
mov byte [esi + 0xb3], 1
mov eax, dword [esi + 0xc8]
add dword [esi + 0xcc], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x10004fc0
mov byte [esp + 0xb0], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0xb0], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005278
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, ebx
call edx
push 0
mov ecx, ebx
call fcn.1005d5a2
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], vtable.CRgn.0
call fcn.10002760
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10