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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x1002a058]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi - 0x88]
mov dword [esp + 0x20], esi
mov dword [esp + 0x48], edi
call fcn.10005f56
test eax, eax
je 0x10004984
xor edi, edi
cmp dword [esi + 0x54], edi
je 0x10004984
cmp dword [esi + 0xd8], edi
jne 0x10004984
cmp dword [esi + 0x64], edi
jne 0x10004984
push edi
push edi
xor ebx, ebx
push edi
inc ebx
push edi
mov dword [esi + 0xd8], ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x1000497d
mov eax, dword [esi + 0x14c]
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], eax
lea eax, [esi - 0x3c]
push ecx
push dword [eax]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x10004348
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
test eax, eax
jle 0x10004348
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
test eax, eax
jle 0x10004348
and dword [esp + 0x4c], edi
jmp 0x1000434c
mov dword [esp + 0x4c], ebx
mov ebx, dword [esi + 0xdc]
jmp 0x100048de
cmp dword [esp + 0x10], 0
je 0x100048e6
and dword [esp + 0x44], 0
mov eax, dword [ebx + 8]
cmp edi, eax
je 0x10004381
mov edi, eax
lea esi, [esp + 0x34]
call fcn.1000d3a5
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
test edi, edi
je 0x100048dc
mov eax, dword [edi]
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [eax + 0x40]
test eax, eax
js 0x100048dc
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100048dc
and dword [esp + 0x3c], 0
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [ecx + 0x218]
test eax, eax
js 0x100048d2
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100043e1
movzx eax, word [eax]
push eax
call fcn.10016256
pop ecx
push 0x68
pop ecx
cmp cx, ax
je 0x100048c1
or eax, 0xffffffff
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push edi
call dword [eax + 0xd0]
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [eax + 0xd4]
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [eax + 0xd8]
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [eax + 0xdc]
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [esp + 0x38], 0
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push ecx
push edi
call dword [eax + 0xe0]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100044a6
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov esi, eax
call dword [ecx + 0xd0]
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [eax + 0xd4]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
and dword [esp + 0x38], 0
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [eax + 0xe0]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x10004453
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x100048c1
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x100048c1
cmp dword [ebx + 0x10], 0
je 0x100047e3
cmp dword [ebx + 0x24], 0
lea edi, [ebx + 0x14]
je 0x100046f6
mov edx, dword [edi]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], edx
jne 0x100044e6
cmp esi, dword [ebx + 0x18]
je 0x1000451d
mov eax, dword [esp + 0x14]
sub eax, edx
mov dword [esp + 0x2c], eax
sub esi, dword [ebx + 0x18]
push esi
push eax
mov dword [esp + 0x38], esi
push dword [ebx + 0x24]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [esp + 0x30]
push dword [esp + 0x30]
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea edi, [ecx + edx]
mov edx, dword [ebx + 0x1c]
cmp edi, edx
je 0x10004589
jge 0x100045ee
add eax, esi
push eax
push edi
push esi
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
test esi, esi
je 0x10004558
mov eax, dword [ebx + 0x24]
push 1
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
jne 0x10004567
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esp + 0x10], 0
test esi, esi
je 0x10004572
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x14]
mov dword [ebx + 0x1c], ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0x20]
add eax, esi
cmp eax, edx
je 0x100047cd
jge 0x10004673
push eax
mov eax, dword [esp + 0x18]
add ecx, eax
push ecx
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
test esi, esi
je 0x100045c4
mov eax, dword [ebx + 0x24]
push 1
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
jne 0x100045d3
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esp + 0x10], 0
test esi, esi
je 0x100045de
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x18]
mov dword [ebx + 0x20], ecx
jmp 0x100047cd
sub edx, dword [esp + 0x14]
xor eax, eax
push eax
push eax
push eax
mov edi, edx
push eax
mov dword [esp + 0x3c], edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
test esi, esi
je 0x10004558
push 5
push esi
push dword [ebx + 0x24]
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
je 0x10004558
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
lea edx, [edi + ecx]
cmp edx, eax
jle 0x10004636
sub eax, ecx
jmp 0x10004638
mov eax, edi
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_OffsetRgn]
test eax, eax
je 0x10004558
mov eax, dword [ebx + 0x24]
push 2
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
je 0x10004558
add dword [esp + 0x2c], edi
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x24]
jl 0x10004623
jmp 0x10004567
xor eax, eax
push eax
push eax
sub edx, esi
push eax
mov edi, edx
push eax
mov dword [esp + 0x40], edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
test esi, esi
je 0x100045c4
push 5
push esi
push dword [ebx + 0x24]
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
je 0x100045c4
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea edx, [edi + ecx]
cmp edx, eax
jle 0x100046b9
sub eax, ecx
jmp 0x100046bb
mov eax, edi
push eax
push 0
push esi
call dword [sym.imp.GDI32.dll_OffsetRgn]
test eax, eax
je 0x100045c4
mov eax, dword [ebx + 0x24]
push 2
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
je 0x100045c4
add dword [esp + 0x30], edi
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x1c]
jl 0x100046a6
jmp 0x100045d3
mov edx, dword [esp + 0x18]
add eax, edx
push eax
mov eax, dword [esp + 0x18]
add ecx, eax
push ecx
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [ebx + 0x10], 2
jne 0x10004756
mov esi, dword [esp + 0x34]
and dword [esp + 0x40], 0
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push 0x100231dc
push esi
call dword [eax]
test eax, eax
js 0x100047cd
cmp dword [esp + 0x40], 0
je 0x100047cd
mov edx, edi
mov ecx, esi
call fcn.10003af8
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100047cd
cmp dword [ebx + 0x24], 0
jne 0x100047cd
cmp dword [esp + 0x28], 0
jne 0x10004778
mov ecx, dword [esi + 0x150]
xor edx, edx
call fcn.10003af8
mov dword [esp + 0x28], eax
test eax, eax
je 0x100047cd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
add edx, ecx
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
test esi, esi
je 0x100047b3
push 1
push dword [esp + 0x2c]
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
je 0x100047b3
mov dword [ebx + 0x24], esi
jmp 0x100047cd
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esp + 0x10], 0
test esi, esi
je 0x100047dc
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x10], 0
je 0x100047dc
mov esi, dword [ebx + 0x24]
jmp 0x1000487f
xor esi, esi
jmp 0x1000487f
movzx edx, word [ebx + 0xc]
xor esi, esi
cmp si, dx
jge 0x10004821
movzx edx, word [ebx + 0xe]
cmp si, dx
jge 0x10004821
movsx edx, dx
push edx
movzx edx, word [ebx + 0xc]
movsx edx, dx
push edx
mov edx, dword [esp + 0x20]
lea eax, [eax + edx + 1]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [ecx + eax + 1]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov esi, eax
jmp 0x10004883
cmp dword [esp + 0x4c], 0
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea edi, [ecx + edx]
mov dword [esp + 0x6c], edi
lea edi, [eax + esi]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], edi
jne 0x1000486f
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x100048b9
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
add ecx, edx
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
mov edi, dword [esp + 0x34]
test esi, esi
je 0x100048bd
push 2
push esi
push dword [esp + 0x18]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
jne 0x100048ab
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esp + 0x10], 0
cmp dword [ebx + 0x24], esi
je 0x100048bd
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100048bd
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x3c], 0
je 0x100048d2
push dword [esp + 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10004357
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100048fd
cmp dword [esi + 0x14c], eax
je 0x100048fd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x10], 0
je 0x10004973
add esi, 0x110
cmp dword [esi], 0
je 0x1000499d
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x10004965
push 5
push ebx
push dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ebx, dword [esp + 0x20]
push dword [ebp + 0x10]
add ebx, 0x10c
push dword [esp + 0x2c]
neg ebx
sbb ebx, ebx
and ebx, esi
mov esi, dword [esp + 0x50]
xor ecx, ecx
call fcn.10004a8a
test eax, eax
jne 0x1000499d
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x20]
test edi, edi
je 0x1000497d
mov eax, dword [edi]
push edi
call dword [eax + 8]
and dword [esi + 0xd8], 0
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10014027
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0xe0], 0
je 0x10004a01
lea eax, [ebx + 0xe8]
cmp dword [eax], 0
je 0x10004965
add ebx, 0xe4
neg ebx
sbb ebx, ebx
and ebx, eax
push dword [ebp + 0x10]
mov esi, dword [esp + 0x4c]
push dword [esp + 0x14]
xor ecx, ecx
inc ecx
call fcn.10004a8a
test eax, eax
je 0x10004965
cmp dword [ebp + 0xc], 0
je 0x100049ea
mov eax, dword [esp + 0x50]
push dword [eax]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x20]
and dword [eax + 0xd8], 0
test edi, edi
je 0x10004984
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x10004984
add ebx, 0xffffff78
neg ebx
sbb ebx, ebx
and ebx, dword [esp + 0x50]
jmp 0x100049c1