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

Disassembly:
push 0xffffffffffffffff
push 0x663268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, ebx
mov dword [esp + 0x20], ebp
call fcn.004ffe10
test eax, eax
je 0x4dbf22
mov ecx, dword [ebp + 4]
call fcn.0049e2f0
mov eax, dword [esp + 0x144]
mov esi, dword [esp + 0x140]
push eax
push esi
mov ecx, ebp
call fcn.0049f790
lea eax, [ebp + 8]
lea ecx, [esp + 0xd8]
push eax
push ecx
mov ecx, esi
call fcn.004ae0c0
mov edx, dword [ebp + 4]
add edx, 0x1c
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0xd8]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], ecx
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
cmp edx, eax
jle 0x4db5ae
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x4db5bb
mov ecx, dword [ebp + 4]
call fcn.0049e300
jmp 0x4dbf22
lea esi, [ebx + 0xc]
mov ecx, 6
lea edi, [esp + 0x68]
lea eax, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x6c]
call fcn.004abea0
fld dword [ebx + 0x2c]
fcomp dword [0x675254]
lea esi, [ebx + 0x2c]
mov dword [esp + 0x4c], 0
fnstsw ax
test ah, 0x40
je 0x4db63d
fld dword [ebx + 0x34]
fcomp dword [0x675254]
fnstsw ax
test ah, 0x40
je 0x4db63d
fld dword [ebx + 0x30]
fcomp dword [ebx + 0x3c]
fnstsw ax
test ah, 0x40
je 0x4db63d
fld dword [ebx + 0x38]
fcomp dword [ebx + 0x40]
fnstsw ax
test ah, 0x40
je 0x4db63d
lea ecx, [esp + 0x68]
call fcn.004abbc0
test eax, eax
jne 0x4db635
lea ecx, [esp + 0x68]
call fcn.004abb80
test eax, eax
je 0x4db63d
mov dword [esp + 0x4c], 1
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0xa0], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0xa4], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0xa8], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xb0], eax
call fcn.004abd90
fld dword [esp + 0xa4]
fsub dword [esp + 0xa0]
push ecx
fstp dword [esp]
call fcn.004ac220
fld dword [esp + 0xb0]
fsub dword [esp + 0xac]
mov edi, eax
mov dword [esp + 0x1c], edi
fstp dword [esp]
call fcn.004ac220
add esp, 4
mov dword [esp + 0x24], eax
test edi, edi
jne 0x4db6bd
mov dword [esp + 0x18], 1
test eax, eax
jne 0x4db6c9
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4db887
mov edx, dword [esp + 0x78]
push edx
call fcn.004ac220
mov ebp, eax
mov eax, dword [esp + 0x80]
push eax
call fcn.004ac220
mov edi, dword [esp + 0x44]
mov ecx, eax
mov eax, edi
add esp, 8
sub eax, ebp
cdq
idiv dword [esp + 0x18]
cmp edi, ebp
mov esi, eax
jge 0x4db707
dec esi
mov edi, dword [esp + 0x44]
mov eax, edi
sub eax, ebp
dec eax
cdq
idiv dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x14], eax
jg 0x4db722
dec eax
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x40]
mov eax, ebp
sub eax, ecx
cdq
idiv dword [esp + 0x24]
cmp ebp, ecx
mov edi, eax
mov dword [esp + 0x2c], edi
jge 0x4db73e
dec edi
mov dword [esp + 0x2c], edi
mov ebp, dword [esp + 0x48]
mov eax, ebp
sub eax, ecx
dec eax
cdq
idiv dword [esp + 0x24]
cmp ebp, ecx
mov dword [esp + 0x1c], eax
jg 0x4db759
dec eax
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub eax, edi
sub ecx, esi
inc eax
inc ecx
imul eax, ecx
cmp eax, 4
jg 0x4dbc0c
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4db863
mov edx, dword [0x68ba50]
lea ecx, [esp + 0x68]
mov eax, edx
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
call fcn.004abde0
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x84]
push edx
call fcn.004ac250
lea eax, [esp + 0x50]
lea ecx, [esp + 0x84]
push eax
call fcn.004ac420
fld dword [esp + 0x84]
fsub dword [ebx + 0x2c]
sub esp, 8
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.00468174
call fcn.004665dc
fld dword [esp + 0x90]
fsub dword [ebx + 0x30]
mov esi, eax
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.0046b69f
call fcn.004665dc
fld dword [esp + 0x94]
fsub dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.00468174
call fcn.004665dc
fld dword [esp + 0x98]
fsub dword [ebx + 0x38]
mov dword [esp + 0x34], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.0046b69f
add esp, 8
call fcn.004665dc
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x28]
xor ebp, ebp
test eax, eax
jne 0x4db981
mov eax, dword [esp + 0x140]
test eax, eax
je 0x4db96b
add eax, 4
jmp 0x4db96d
mov ecx, dword [0x68ba50]
lea eax, [esp + 0x68]
mov dword [esp + 0x5c], ecx
mov edx, ecx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
call fcn.004abde0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x88]
call fcn.004ac250
lea edx, [esp + 0x50]
lea ecx, [esp + 0x84]
push edx
call fcn.004ac420
fld dword [esp + 0x84]
fsub dword [esi]
sub esp, 8
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.00468174
call fcn.004665dc
fld dword [esp + 0x90]
fsub dword [ebx + 0x30]
mov esi, eax
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.0046b69f
call fcn.004665dc
fld dword [esp + 0x94]
fsub dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.00468174
call fcn.004665dc
fld dword [esp + 0x98]
fsub dword [ebx + 0x38]
mov dword [esp + 0x34], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.0046b69f
add esp, 8
call fcn.004665dc
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x4db75d
xor eax, eax
mov ecx, dword [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.0049fde0
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], esi
cmp esi, eax
jg 0x4dbaef
imul esi, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x1c]
mov ebx, edi
cmp edi, eax
mov dword [esp + 0x10], ebx
jg 0x4dbacc
mov eax, edi
imul eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4db9d9
fild dword [esp + 0x34]
fadd dword [esp + 0x78]
fstp dword [esp + 0x28]
fild dword [esp + 0x30]
fsubr dword [esp + 0x7c]
fstp dword [esp + 0x10]
jmp 0x4dba09
fild dword [esp + 0x38]
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
fmul dword [eax + 0x3c]
fstp dword [esp + 0x2c]
fild dword [esp + 0x14]
fmul dword [eax + 0x40]
lea eax, [esp + 0x2c]
push eax
fstp dword [esp + 0x18]
call fcn.004abc70
fld dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, 6
fsub dword [esp + 0x7c]
fld dword [esp + 0x28]
fsub dword [esp + 0x78]
lea esi, [edx + 8]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x60]
fadd st(1)
fstp dword [esp + 0x60]
fstp st(0)
fld dword [esp + 0x64]
fadd st(1)
mov esi, edx
fstp dword [esp + 0x64]
mov ecx, dword [esi + 4]
fstp st(0)
call fcn.0049e2f0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ebp
lea eax, [esp + 0x54]
push 0
push eax
push ecx
push edx
lea ecx, [esp + 0xfc]
call fcn.0049ee00
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x134], 0
mov ecx, dword [eax + 0x44]
push ecx
lea ecx, [esp + 0xec]
call fcn.0049f010
mov ecx, dword [esi + 4]
call fcn.0049e300
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 0xffffffff
call fcn.0049eec0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
inc ebx
add ecx, edx
cmp ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], ecx
jle 0x4db9b7
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
jle 0x4db99a
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
call fcn.0049e300
test ebp, ebp
je 0x4dbf22
mov dword [esp + 0x98], ebp
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x134], 4
test eax, eax
je 0x4dbb36
mov edx, dword [eax + 0x6c]
dec edx
mov dword [eax + 0x6c], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jg 0x4dbb36
push eax
call fcn.00493ae0
add esp, 4
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x134], 3
test eax, eax
je 0x4dbb5f
mov edx, dword [eax + 0x34]
dec edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jg 0x4dbb5f
push eax
call fcn.00493ae0
add esp, 4
mov eax, dword [ebp + 8]
mov byte [esp + 0x134], 2
test eax, eax
je 0x4dbb93
mov ecx, dword [eax + 0x18]
dec ecx
mov dword [eax + 0x18], ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
test eax, eax
jg 0x4dbb93
test esi, esi
je 0x4dbb93
mov ecx, esi
call fcn.0049d490
push esi
call fcn.00493ae0
add esp, 4
mov eax, dword [ebp + 4]
mov byte [esp + 0x134], 1
test eax, eax
je 0x4dbbc7
mov ecx, dword [eax + 0x1c]
dec ecx
mov dword [eax + 0x1c], ecx
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x1c]
test eax, eax
jg 0x4dbbc7
test esi, esi
je 0x4dbbc7
mov ecx, esi
call fcn.004bdc80
push esi
call fcn.00493ae0
add esp, 4
mov eax, dword [ebp]
mov dword [esp + 0x134], 0xffffffff
test eax, eax
je 0x4dbbfe
mov ecx, dword [eax + 0x14]
dec ecx
mov dword [eax + 0x14], ecx
mov esi, dword [ebp]
mov eax, dword [esi + 0x14]
test eax, eax
jg 0x4dbbfe
test esi, esi
je 0x4dbbfe
mov ecx, esi
call fcn.004bd340
push esi
call fcn.00493ae0
add esp, 4
push ebp
call fcn.00493ae0
add esp, 4
jmp 0x4dbf22
fld dword [esp + 0xa0]
fsub dword [esp + 0x78]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
push ecx
lea ecx, [ebp + 8]
push edx
fstp dword [esp + 0xb8]
fld dword [esp + 0xb0]
fsub dword [esp + 0x84]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x20]
push ebx
push ecx
push edx
fstp dword [esp + 0xb0]
call fcn.004db2e0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4dbc68
mov ecx, dword [ebp + 4]
call fcn.0049e300
jmp 0x4dbf22
mov eax, dword [esp + 0x140]
mov ecx, ebp
push eax
call fcn.0049f3f0
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
sub ebx, ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x9c], eax
sub ebp, edx
call fcn.004c5740
push 0
push 0
push 0x220
push ebx
push ebp
lea ecx, [esp + 0xc8]
mov dword [esp + 0x148], 5
call fcn.004c5780
push 0
lea ecx, [esp + 0xb8]
call fcn.004c5c10
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp esi, eax
mov dword [esp + 0x30], esi
jg 0x4dbed5
imul esi, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
cmp ebx, eax
mov dword [esp + 0x34], ebx
jg 0x4dbeb2
mov ebp, dword [esp + 0x24]
imul ebx, ebp
mov dword [esp + 0x38], ebx
jmp 0x4dbd17
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4dbd58
mov eax, dword [esp + 0x78]
push eax
call fcn.004ac220
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x80]
mov esi, eax
mov eax, dword [esp + 0x40]
sub ecx, eax
push edx
add esi, ecx
call fcn.004ac220
mov edx, dword [esp + 0x48]
add esp, 8
sub ebx, edx
add eax, ebx
mov ebx, dword [esp + 0x13c]
jmp 0x4dbdd2
fild dword [esp + 0x30]
mov ebx, dword [esp + 0x13c]
lea eax, [esp + 0x94]
lea ecx, [esp + 0x80]
push eax
fmul dword [ebx + 0x3c]
push ecx
lea ecx, [esp + 0x70]
fstp dword [esp + 0x88]
fild dword [esp + 0x3c]
fmul dword [ebx + 0x40]
fstp dword [esp + 0x9c]
call fcn.004abc70
fld dword [esp + 0x80]
fadd dword [esp + 0xb0]
push ecx
fstp dword [esp]
call fcn.004ac220
fld dword [esp + 0x98]
fadd dword [esp + 0x9c]
mov ecx, dword [esp + 0x40]
mov esi, eax
sub esi, ecx
fstp dword [esp]
call fcn.004ac220
mov ecx, dword [esp + 0x44]
add esp, 4
sub eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jne 0x4dbe58
cmp ebp, ecx
jne 0x4dbe58
test esi, esi
jl 0x4dbe93
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub edx, ecx
cmp esi, edx
jge 0x4dbe93
test eax, eax
jl 0x4dbe93
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub ecx, edx
cmp eax, ecx
jge 0x4dbe93
mov edx, dword [esp + 0xc8]
imul edx, eax
mov eax, dword [esp + 0xd0]
add eax, edx
lea esi, [eax + esi*4]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4dbe3a
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esi], edx
jmp 0x4dbe93
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x9c]
xor eax, eax
and edx, 0xffffff
mov al, byte [ecx]
shl eax, 0x18
or eax, edx
mov dword [esi], eax
jmp 0x4dbe93
mov edx, dword [ebx + 0x28]
push 0
push 0
push 0
test edx, edx
push 0
je 0x4dbe7a
push edi
push ebp
push ecx
push eax
push esi
lea ecx, [esp + 0xd8]
call fcn.004d4e90
jmp 0x4dbe93
mov edx, dword [esp + 0xac]
push edx
push edi
push ebp
push ecx
push eax
push esi
lea ecx, [esp + 0xdc]
call fcn.004d72d0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
inc eax
add edx, ebp
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
jle 0x4dbd13
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
jle 0x4dbcf2
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
push 0
push 0xff
push 0
push edx
lea ecx, [esp + 0xc4]
push eax
push ecx
mov ecx, esi
call fcn.004dc910
mov ecx, dword [esi + 4]
call fcn.0049e300
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x134], 0xffffffff
call fcn.004c5810
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 0xc