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

Disassembly:
push 0xffffffffffffffff
push 0x4e33b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov ecx, dword [esp + 0x6c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp], eax
je 0x4231c0
mov edx, dword [esp + 0x80]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x80]
push edx
lea edx, [esp + 0x44]
push eax
mov eax, dword [esp + 0x74]
push edx
push ecx
push eax
call fcn.0043f000
add esp, 0x18
cmp eax, 1
jne 0x4231c0
mov edx, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov eax, dword [ebp]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
sub ebx, eax
sub ecx, esi
sub edx, 0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x90], ecx
mov edi, eax
je 0x423122
dec edx
je 0x42304a
dec edx
jne 0x4231b2
mov eax, dword [esp + 0x7c]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ebp, ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], eax
jg 0x422f14
mov eax, ebx
mov ebx, ebp
sub eax, ebp
mov dword [esp + 0x78], ebx
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov edx, dword [esp + 0x7c]
cmp edx, ecx
jg 0x422f32
mov eax, ecx
mov ecx, dword [esp + 0x7c]
sub eax, edx
mov dword [esp + 0x90], ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
cmp ebp, ebx
jg 0x422f3c
cmp dword [esp + 0x7c], ecx
jle 0x422fad
fild dword [esp + 0x80]
fild dword [esp + 0x78]
fdiv st(1)
fild dword [esp + 0x7c]
fst qword [esp + 0x1c]
fild dword [esp + 0x90]
fdiv st(1)
fstp qword [esp + 0x14]
fstp st(0)
fcom qword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x422f71
fstp st(0)
fld qword [esp + 0x14]
fxch st(1)
fmul st(1)
call fcn.004c5d68
fld qword [esp + 0x1c]
fmul st(1)
mov ebp, eax
call fcn.004c5d68
mov ecx, eax
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x8c], ecx
cdq
fstp st(0)
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x90]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x8c]
push edx
push 0xcc0020
push eax
push ebp
push esi
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.0043f570
mov ebx, dword [esp + 0xa4]
add esp, 0x1c
test ebx, ebx
je 0x4231b2
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4f6a70
mov edx, dword [esp + 0x8c]
add ebp, edi
add edx, esi
mov dword [esp + 0x6c], 2
push edx
push ebp
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.004def2c
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x14], 0x4f698c
mov dword [esp + 0x6c], 3
lea ecx, [esp + 0x14]
jmp 0x4231ad
add ecx, esi
cmp esi, ecx
jge 0x42310e
mov ecx, dword [esp + 0x54]
mov edi, eax
lea edx, [eax + ebx]
cmp edi, edx
jge 0x4230f4
mov eax, dword [esp + 0x58]
add ecx, edi
add eax, esi
push eax
push ecx
push esi
lea ecx, [esp + 0x48]
push edi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4230e0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push edi
push edx
call fcn.0043f570
add esp, 0x1c
mov eax, dword [ebp]
mov ecx, dword [esp + 0x54]
add edi, ecx
lea edx, [eax + ebx]
cmp edi, edx
jl 0x423065
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x90]
add esi, edx
mov edx, dword [ebp + 4]
add edx, edi
cmp esi, edx
jl 0x423058
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x4231b2
jmp 0x4231ad
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push edi
push ecx
call fcn.0043f570
mov ebx, dword [esp + 0xa4]
xor eax, eax
add esp, 0x1c
cmp ebx, eax
je 0x4231b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x4f6a70
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
add ecx, edi
lea eax, [edx + esi]
push eax
push ecx
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.004def2c
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x14], 0x4f698c
mov dword [esp + 0x6c], 1
lea ecx, [esp + 0x14]
call fcn.004def83
lea edx, [esp + 0x4c]
push edx
call fcn.0043f9f0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret