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

Disassembly:
push 0xffffffffffffffff
push 0x65e308
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.004fe720
test eax, eax
je 0x4da8f2
mov ecx, dword [ebp + 4]
call fcn.0049d250
mov eax, dword [esp + 0x144]
mov esi, dword [esp + 0x140]
push eax
push esi
mov ecx, ebp
call fcn.0049e6b0
lea eax, [ebp + 8]
lea ecx, [esp + 0xd8]
push eax
push ecx
mov ecx, esi
call fcn.004ad020
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 0x4d9f7e
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x4d9f8b
mov ecx, dword [ebp + 4]
call fcn.0049d260
jmp 0x4da8f2
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.004aae00
fld dword [ebx + 0x2c]
fcomp dword [0x670244]
lea esi, [ebx + 0x2c]
mov dword [esp + 0x4c], 0
fnstsw ax
test ah, 0x40
je 0x4da00d
fld dword [ebx + 0x34]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x40
je 0x4da00d
fld dword [ebx + 0x30]
fcomp dword [ebx + 0x3c]
fnstsw ax
test ah, 0x40
je 0x4da00d
fld dword [ebx + 0x38]
fcomp dword [ebx + 0x40]
fnstsw ax
test ah, 0x40
je 0x4da00d
lea ecx, [esp + 0x68]
call fcn.004aab20
test eax, eax
jne 0x4da005
lea ecx, [esp + 0x68]
call fcn.004aaae0
test eax, eax
je 0x4da00d
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.004aacf0
fld dword [esp + 0xa4]
fsub dword [esp + 0xa0]
push ecx
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0xb0]
fsub dword [esp + 0xac]
mov edi, eax
mov dword [esp + 0x1c], edi
fstp dword [esp]
call fcn.004ab180
add esp, 4
mov dword [esp + 0x24], eax
test edi, edi
jne 0x4da08d
mov dword [esp + 0x18], 1
test eax, eax
jne 0x4da099
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4da257
mov edx, dword [esp + 0x78]
push edx
call fcn.004ab180
mov ebp, eax
mov eax, dword [esp + 0x80]
push eax
call fcn.004ab180
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 0x4da0d7
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 0x4da0f2
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 0x4da10e
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 0x4da129
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 0x4da5dc
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4da233
mov edx, dword [0x686838]
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.004aad40
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x84]
push edx
call fcn.004ab1b0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x84]
push eax
call fcn.004ab380
fld dword [esp + 0x84]
fsub dword [ebx + 0x2c]
sub esp, 8
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.004681e4
call fcn.0046664c
fld dword [esp + 0x90]
fsub dword [ebx + 0x30]
mov esi, eax
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.0046b70f
call fcn.0046664c
fld dword [esp + 0x94]
fsub dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.004681e4
call fcn.0046664c
fld dword [esp + 0x98]
fsub dword [ebx + 0x38]
mov dword [esp + 0x34], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.0046b70f
add esp, 8
call fcn.0046664c
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x28]
xor ebp, ebp
test eax, eax
jne 0x4da351
mov eax, dword [esp + 0x140]
test eax, eax
je 0x4da33b
add eax, 4
jmp 0x4da33d
mov ecx, dword [0x686838]
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.004aad40
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x88]
call fcn.004ab1b0
lea edx, [esp + 0x50]
lea ecx, [esp + 0x84]
push edx
call fcn.004ab380
fld dword [esp + 0x84]
fsub dword [esi]
sub esp, 8
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.004681e4
call fcn.0046664c
fld dword [esp + 0x90]
fsub dword [ebx + 0x30]
mov esi, eax
fdiv dword [ebx + 0x3c]
fstp qword [esp]
call fcn.0046b70f
call fcn.0046664c
fld dword [esp + 0x94]
fsub dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.004681e4
call fcn.0046664c
fld dword [esp + 0x98]
fsub dword [ebx + 0x38]
mov dword [esp + 0x34], eax
fdiv dword [ebx + 0x40]
fstp qword [esp]
call fcn.0046b70f
add esp, 8
call fcn.0046664c
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x4da12d
xor eax, eax
mov ecx, dword [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.0049ed00
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], esi
cmp esi, eax
jg 0x4da4bf
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 0x4da49c
mov eax, edi
imul eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4da3a9
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 0x4da3d9
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.004aabd0
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.0049d250
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.0049dd40
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x134], 0
mov ecx, dword [eax + 0x44]
push ecx
lea ecx, [esp + 0xec]
call fcn.0049df50
mov ecx, dword [esi + 4]
call fcn.0049d260
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 0xffffffff
call fcn.0049de00
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 0x4da387
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 0x4da36a
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
call fcn.0049d260
test ebp, ebp
je 0x4da8f2
mov dword [esp + 0x98], ebp
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x134], 4
test eax, eax
je 0x4da506
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 0x4da506
push eax
call fcn.004fec60
add esp, 4
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x134], 3
test eax, eax
je 0x4da52f
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 0x4da52f
push eax
call fcn.004fec60
add esp, 4
mov eax, dword [ebp + 8]
mov byte [esp + 0x134], 2
test eax, eax
je 0x4da563
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 0x4da563
test esi, esi
je 0x4da563
mov ecx, esi
call fcn.0049c3d0
push esi
call fcn.004fec60
add esp, 4
mov eax, dword [ebp + 4]
mov byte [esp + 0x134], 1
test eax, eax
je 0x4da597
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 0x4da597
test esi, esi
je 0x4da597
mov ecx, esi
call fcn.004bca60
push esi
call fcn.004fec60
add esp, 4
mov eax, dword [ebp]
mov dword [esp + 0x134], 0xffffffff
test eax, eax
je 0x4da5ce
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 0x4da5ce
test esi, esi
je 0x4da5ce
mov ecx, esi
call fcn.004bc260
push esi
call fcn.004fec60
add esp, 4
push ebp
call fcn.004fec60
add esp, 4
jmp 0x4da8f2
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.004d9cb0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4da638
mov ecx, dword [ebp + 4]
call fcn.0049d260
jmp 0x4da8f2
mov eax, dword [esp + 0x140]
mov ecx, ebp
push eax
call fcn.0049e330
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.004c4430
push 0
push 0
push 0x220
push ebx
push ebp
lea ecx, [esp + 0xc8]
mov dword [esp + 0x148], 5
call fcn.004c4470
push 0
lea ecx, [esp + 0xb8]
call fcn.004c4900
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 0x4da8a5
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 0x4da882
mov ebp, dword [esp + 0x24]
imul ebx, ebp
mov dword [esp + 0x38], ebx
jmp 0x4da6e7
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4da728
mov eax, dword [esp + 0x78]
push eax
call fcn.004ab180
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.004ab180
mov edx, dword [esp + 0x48]
add esp, 8
sub ebx, edx
add eax, ebx
mov ebx, dword [esp + 0x13c]
jmp 0x4da7a2
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.004aabd0
fld dword [esp + 0x80]
fadd dword [esp + 0xb0]
push ecx
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x98]
fadd dword [esp + 0x9c]
mov ecx, dword [esp + 0x40]
mov esi, eax
sub esi, ecx
fstp dword [esp]
call fcn.004ab180
mov ecx, dword [esp + 0x44]
add esp, 4
sub eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jne 0x4da828
cmp ebp, ecx
jne 0x4da828
test esi, esi
jl 0x4da863
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub edx, ecx
cmp esi, edx
jge 0x4da863
test eax, eax
jl 0x4da863
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub ecx, edx
cmp eax, ecx
jge 0x4da863
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 0x4da80a
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esi], edx
jmp 0x4da863
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 0x4da863
mov edx, dword [ebx + 0x28]
push 0
push 0
push 0
test edx, edx
push 0
je 0x4da84a
push edi
push ebp
push ecx
push eax
push esi
lea ecx, [esp + 0xd8]
call fcn.004d3a80
jmp 0x4da863
mov edx, dword [esp + 0xac]
push edx
push edi
push ebp
push ecx
push eax
push esi
lea ecx, [esp + 0xdc]
call fcn.004d5ec0
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 0x4da6e3
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 0x4da6c2
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.004db2e0
mov ecx, dword [esi + 4]
call fcn.0049d260
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x134], 0xffffffff
call fcn.004c4500
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 0xc