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

Disassembly:
push 0xffffffffffffffff
push 0x4d1713
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517b6c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa8]
xor ebx, ebx
mov dword [esp + 0x24], vtable.CPOS.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xa0], ebx
push 4
mov dword [esp + 0x1c], vtable.CSMARTPTR_class_CSPRITE_.0
call fcn.004acfc8
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [eax], 1
mov byte [esp + 0xa0], 1
mov eax, dword [ebp + 0x54]
add eax, dword [esi + 8]
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x50]
add edi, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], edx
add edx, eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x54]
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [0x51be98]
mov edx, dword [0x51be94]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x44050c
cmp byte [esp + 0xb4], bl
je 0x44050c
mov eax, dword [ebp + 0xa4]
lea ecx, [esp + 0x24]
push ecx
jmp 0x440517
mov eax, dword [ebp + 0xb0]
lea edx, [esp + 0x24]
push edx
mov edi, dword [esp + 0xb0]
push edi
push eax
lea esi, [esp + 0x30]
call fcn.00418610
mov eax, dword [ebp + 0x80]
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
mov dword [esp + 0x14], 0
jle 0x4406b3
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4405a0
cmp ebx, dword [ebp + 0xd4]
je 0x440648
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x44058f
test ebx, ebx
je 0x440586
cmp dword [ebx - 4], ecx
lea eax, [ebx - 4]
je 0x44057d
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x440586
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0xd0]
mov ebx, dword [ebp + 0xd4]
jmp 0x44063d
add eax, 0xffffffff
cmp ecx, eax
jne 0x4405f5
cmp ebx, dword [ebp + 0xec]
je 0x440648
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x4405e7
test ebx, ebx
je 0x4405de
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x4405d5
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x4405de
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0xe8]
mov ebx, dword [ebp + 0xec]
jmp 0x44063d
cmp ebx, dword [ebp + 0xe0]
je 0x440648
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440631
test ebx, ebx
je 0x440628
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x44061f
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x440628
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0xdc]
mov ebx, dword [ebp + 0xe0]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0xb0]
mov eax, dword [ebp + 0x7c]
add eax, dword [edx + 8]
mov esi, dword [ebp + 0x78]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x84]
lea esi, [esi + edi*8]
add esi, dword [edx + 4]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x30], esi
push ebx
mov esi, eax
mov dword [esp + 0x3c], 8
mov dword [esp + 0x40], ecx
call fcn.00418610
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x14]
cdq
and edx, 7
add eax, edx
add ecx, 1
sar eax, 3
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x440548
mov edx, dword [esp + 0xb0]
mov eax, dword [ebp + 0x68]
add eax, dword [edx + 8]
mov esi, dword [ebp + 0x64]
add esi, dword [edx + 4]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x4c], eax
add edx, eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x68]
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [0x51be98]
mov edx, dword [0x51be94]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x440746
cmp byte [esp + 0xb4], 0
je 0x440746
mov eax, dword [ebp + 0xbc]
lea ecx, [esp + 0x24]
push ecx
jmp 0x440751
mov eax, dword [ebp + 0xc8]
lea edx, [esp + 0x24]
push edx
push edi
push eax
lea esi, [esp + 0x30]
call fcn.00418610
cmp byte [ebp + 0x138], 0
jne 0x44079e
mov byte [esp + 0xa0], 0
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440d64
test ebx, ebx
je 0x440d5b
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x440d52
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x440d5b
mov eax, vtable.CPOS.0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0xb0]
mov byte [esp + 0xa0], 5
mov eax, dword [esi + 8]
add eax, dword [ebp + 0x90]
mov edx, dword [ebp + 0x94]
mov ecx, dword [ebp + 0x98]
mov edi, dword [ebp + 0x8c]
add edi, dword [esi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x8c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edx
add edx, eax
mov eax, dword [ebp + 0x98]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x90]
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x48], edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [0x51be98]
mov edx, dword [0x51be94]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x440ac9
cmp byte [ebp + 0x150], al
je 0x440865
cmp byte [esp + 0xb4], al
jne 0x440ac9
mov eax, dword [ebp + 0x11c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 0x128]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 0x134]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 0x94]
test eax, eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x14], 0
jle 0x440d28
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x44096b
cmp ebx, dword [ebp + 0x11c]
je 0x44094a
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440933
test ebx, ebx
je 0x44092a
cmp dword [ebx - 4], ecx
lea eax, [ebx - 4]
je 0x440921
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x44092a
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x118]
mov ebx, dword [ebp + 0x11c]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edx
jmp 0x440a60
mov edi, dword [esp + 0x7c]
sub eax, edi
cmp ecx, eax
jl 0x4409e5
cmp ebx, dword [ebp + 0x134]
je 0x4409c8
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x4409b1
test ebx, ebx
je 0x4409a8
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x44099f
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x4409a8
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x130]
mov ebx, dword [ebp + 0x134]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edi
jmp 0x440a60
cmp ebx, dword [ebp + 0x128]
je 0x440a38
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440a21
test ebx, ebx
je 0x440a18
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x440a0f
mov edx, dword [ebx]
mov eax, dword [edx]
push 3
mov ecx, ebx
call eax
jmp 0x440a18
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x124]
mov ebx, dword [ebp + 0x128]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0xb0]
mov eax, dword [edx + 8]
add eax, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [edx + 4]
mov edi, dword [esp + 0xac]
add esi, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x30], esi
push ebx
mov esi, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
call fcn.00418610
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov eax, dword [ebp + 0x94]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4408f0
jmp 0x440d28
mov eax, dword [ebp + 0xf8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 0x104]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 0x110]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 0x94]
test eax, eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x14], 0
jle 0x440d28
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x440bcf
cmp ebx, dword [ebp + 0xf8]
je 0x440bae
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440b97
test ebx, ebx
je 0x440b8e
cmp dword [ebx - 4], ecx
lea eax, [ebx - 4]
je 0x440b85
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x440b8e
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0xf4]
mov ebx, dword [ebp + 0xf8]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edx
jmp 0x440cc4
mov edi, dword [esp + 0x7c]
sub eax, edi
cmp ecx, eax
jl 0x440c49
cmp ebx, dword [ebp + 0x110]
je 0x440c2c
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440c15
test ebx, ebx
je 0x440c0c
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x440c03
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
mov ecx, ebx
call edx
jmp 0x440c0c
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x10c]
mov ebx, dword [ebp + 0x110]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edi
jmp 0x440cc4
cmp ebx, dword [ebp + 0x104]
je 0x440c9c
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440c85
test ebx, ebx
je 0x440c7c
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x440c73
mov edx, dword [ebx]
mov eax, dword [edx]
push 3
mov ecx, ebx
call eax
jmp 0x440c7c
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x100]
mov ebx, dword [ebp + 0x104]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0xb0]
mov eax, dword [edx + 8]
add eax, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [edx + 4]
mov edi, dword [esp + 0xac]
add esi, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x30], esi
push ebx
mov esi, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
call fcn.00418610
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov eax, dword [ebp + 0x94]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x440b54
mov byte [esp + 0xa0], 0
mov esi, dword [esp + 0x1c]
add dword [esi], 0xffffffff
jne 0x440d64
test ebx, ebx
je 0x440d5b
cmp dword [ebx - 4], 0
lea eax, [ebx - 4]
je 0x440d52
mov edx, dword [ebx]
mov eax, dword [edx]
push 3
mov ecx, ebx
call eax
jmp 0x440d5b
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x10