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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x160
mov ecx, dword [0x1018da60]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1018d3d0]
push edi
cmp eax, dword [esi + 4]
jg 0x100457e3
mov eax, dword [0x1018d3d8]
cmp eax, dword [esi + 4]
jg 0x1004583a
push str._FF0000INDIAN_KARTON_MAFIA_FFFFFF_developer_erkanbaba24_
lea eax, [esp + 0x6c]
push 0xff
push eax
call fcn.1004152c
add esp, 0xc
cmp dword [0x10158530], 0
je 0x100457da
mov edi, dword [0x1018121c]
lea eax, [esp + 0x68]
sub edi, dword [0x1018d3d4]
sub edi, dword [0x1018d3cc]
mov ecx, dword [0x10181360]
sub edi, 0x18
push ebx
mov ebx, dword [0x10181218]
push ebp
push 0
shr ebx, 1
push eax
sub ebx, 0xc8
call fcn.1003ff3d
fsub dword [0x10085d08]
push 0
push ecx
mov ecx, dword [0x10181360]
lea eax, [esp + 0x78]
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
maxss xmm0, dword [0x10074e9c]
movss dword [esp], xmm0
push eax
call fcn.1004037c
mov ebp, eax
test ebp, ebp
jle 0x10045259
inc ebp
mov edx, dword [0x100dbf84]
mov ecx, dword [edx + 4]
movzx esi, byte [edx + 8]
movzx eax, byte [edx + 0xc]
shl ecx, 8
or esi, ecx
mov ecx, dword [0x1018135c]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 0x10]
shl esi, 8
or esi, eax
mov eax, dword [0x1018d3cc]
push esi
push 0xdf5b5b5b
add eax, 2
mov esi, 0x190
push eax
push esi
push edi
push ebx
call fcn.1003fc29
mov ecx, dword [0x100dbf84]
mov eax, dword [ecx + 4]
movzx edx, byte [ecx + 8]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 0xc]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x10]
mov ecx, dword [0x1018135c]
shl edx, 8
or edx, eax
mov eax, dword [0x1018d3cc]
push edx
push 0xa0ffffff
add eax, 3
push eax
push esi
push edi
push ebx
call fcn.1003fc29
lea eax, [esp + 0x70]
add eax, ebp
push eax
call fcn.10007783
push eax
lea eax, [edi + 2]
movd xmm0, eax
lea eax, [ebx + 2]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
mov ecx, dword [0x10181360]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.10041178
mov ecx, dword [0x100dbf88]
mov ebp, dword [0x10181218]
mov ebx, dword [0x1018121c]
mov esi, dword [0x1018d3d4]
sub ebx, esi
mov eax, dword [ecx + 4]
sub ebx, 0x15
movzx edx, byte [ecx + 8]
shl eax, 8
or edx, eax
shr ebp, 1
movzx eax, byte [ecx + 0xc]
sub ebp, 0xc8
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x10]
shl edx, 8
or edx, eax
push edx
push 0xdfffffff
push esi
mov ecx, dword [0x1018135c]
push 0x190
push ebx
push ebp
call fcn.1003fc29
mov ecx, dword [0x100dbf88]
mov eax, dword [ecx + 4]
movzx edx, byte [ecx + 8]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 0xc]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x10]
mov ecx, dword [0x1018135c]
shl edx, 8
or edx, eax
mov eax, dword [0x1018d3d4]
push edx
push 0xa0ffffff
inc eax
push eax
push 0x191
push ebx
push ebp
call fcn.1003fc29
mov edx, dword [0x10158530]
mov esi, dword [edx + 0xc]
mov edi, esi
mov dword [esp + 0x10], esi
lea eax, [esi - 0xc]
cmp eax, dword [edx + 0x10]
lea ecx, [esi - 0xb]
cmovl ecx, dword [edx + 0x10]
cmp esi, ecx
cmovge edi, ecx
test edi, edi
jns 0x100453e1
xor edi, edi
jmp 0x100453eb
mov eax, dword [edx + 8]
cmp edi, eax
jl 0x100453eb
lea edi, [eax - 1]
lea eax, [ebp - 0x2d]
movd xmm1, ebx
movd xmm0, eax
xor ebx, ebx
cvtdq2ps xmm0, xmm0
lea eax, [esp + 0x28]
mov dword [edx + 0x10], edi
push eax
push ecx
and dword [esp], 0
lea eax, [esp + 0x38]
cvtdq2ps xmm1, xmm1
push ebx
push ebx
push ecx
and dword [esp], ebx
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm1
movss dword [esp + 0x28], xmm1
subss xmm0, dword [0x10085cbc]
push ebx
push eax
movss dword [esp + 0x48], xmm0
call sub.d3dx9_43.dll_D3DXMatrixTransformation2D
mov eax, dword [0x1018132c]
push 0x10
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [0x1018132c]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [0x1018132c]
push 0xffffffffffffffff
push ebx
push ebx
mov ecx, dword [eax]
push ebx
push dword [0x10181328]
push eax
call dword [ecx + 0x24]
mov eax, dword [0x1018132c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [edi + 0xc]
mov dword [esp + 0x24], eax
cmp edi, eax
jge 0x100457d8
mov ecx, dword [0x10158530]
movss xmm0, dword [esp + 0x14]
imul eax, edi, 0x18
mov dword [esp + 0x1c], eax
test edi, edi
js 0x100457af
cmp edi, dword [ecx + 8]
jge 0x100457af
mov ebx, dword [ecx + 0x14]
add ebx, eax
push ebx
push 0
call dword [ecx + 0x18]
mov dword [esp + 0x20], eax
pop ecx
pop ecx
cmp edi, esi
jne 0x1004555b
movss xmm4, dword [esp + 0x14]
movss xmm3, dword [0x100844fc]
movaps xmm0, xmm4
movss xmm1, dword [0x100844f8]
andps xmm3, xmm4
mov edx, dword [0x100dbf8c]
xorps xmm0, xmm3
cmpltss xmm0, xmm1
movaps xmm2, xmm4
push 0
mov ecx, dword [edx + 4]
movzx esi, byte [edx + 8]
movzx eax, byte [edx + 0xc]
andps xmm1, xmm0
orps xmm1, xmm3
shl ecx, 8
addss xmm2, xmm1
or esi, ecx
mov ecx, dword [0x1018135c]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 0x10]
shl esi, 8
subss xmm2, xmm1
or esi, eax
movss xmm1, dword [0x10074e84]
mov eax, dword [0x1018d3cc]
push esi
inc eax
movaps xmm0, xmm2
subss xmm0, xmm4
push eax
push 0x18f
cmpnless xmm0, xmm3
andps xmm0, xmm1
subss xmm2, xmm0
cvttss2si eax, xmm2
inc eax
push eax
lea eax, [ebp + 1]
push eax
call fcn.1003fc75
cmp edi, dword [0x100dbb5c]
jne 0x10045604
movss xmm4, dword [esp + 0x14]
movss xmm3, dword [0x100844fc]
movaps xmm0, xmm4
movss xmm1, dword [0x100844f8]
andps xmm3, xmm4
mov esi, dword [0x100dbf8c]
xorps xmm0, xmm3
cmpltss xmm0, xmm1
movaps xmm2, xmm4
push 0
mov eax, dword [esi + 4]
movzx ecx, byte [esi + 8]
andps xmm1, xmm0
cdq
orps xmm1, xmm3
sub eax, edx
addss xmm2, xmm1
sar eax, 1
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0xc]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x10]
subss xmm2, xmm1
shl eax, 8
movss xmm1, dword [0x10074e84]
or eax, ecx
mov ecx, dword [0x1018135c]
push eax
mov eax, dword [0x1018d3cc]
movaps xmm0, xmm2
inc eax
subss xmm0, xmm4
push eax
push 0x18f
cmpnless xmm0, xmm3
andps xmm0, xmm1
subss xmm2, xmm0
cvttss2si eax, xmm2
inc eax
push eax
lea eax, [ebp + 1]
push eax
call fcn.1003fc75
mov esi, dword [ebx + 8]
cmp byte [esi], 9
jne 0x100456dc
movss xmm0, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push dword [ebx + 0x10]
lea esi, [ebp + 2]
push ecx
push ecx
mov ecx, dword [0x10181360]
movss dword [esp + 4], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.10041178
mov eax, dword [ebx + 8]
mov ecx, dword [0x10181360]
inc eax
push 0
push eax
call fcn.1003ff3d
push ecx
push ecx
fstp qword [esp]
call fcn.1005c860
movss xmm4, dword [esp + 0x1c]
movss xmm3, dword [0x100844fc]
movaps xmm0, xmm4
movss xmm1, dword [0x100844f8]
andps xmm3, xmm4
xorps xmm0, xmm3
movaps xmm2, xmm4
cmpltss xmm0, xmm1
pop ecx
pop ecx
fstp dword [esp + 0x18]
cvttss2si eax, dword [esp + 0x18]
push 0
push 0xbf7f7f7f
push 1
andps xmm1, xmm0
orps xmm1, xmm3
addss xmm2, xmm1
push eax
mov eax, dword [0x1018d3cc]
dec eax
subss xmm2, xmm1
movss xmm1, dword [0x10074e84]
movaps xmm0, xmm2
subss xmm0, xmm4
cmpnless xmm0, xmm3
andps xmm0, xmm1
subss xmm2, xmm0
cvttss2si ecx, xmm2
add eax, ecx
mov ecx, dword [0x1018135c]
push eax
push esi
call fcn.1003fc75
jmp 0x10045733
cmp dword [esp + 0x18], 0
je 0x10045706
mov ecx, dword [0x100dbf90]
mov edx, dword [ecx + 8]
movzx eax, byte [ecx + 0xc]
or edx, 0xffffff00
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x10]
shl edx, 8
or edx, eax
jmp 0x10045709
mov edx, dword [ebx + 0x10]
movss xmm0, dword [esp + 0x14]
push esi
push edx
push ecx
push ecx
mov ecx, dword [0x10181360]
lea esi, [ebp + 2]
movss dword [esp + 4], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.10041178
cmp dword [ebx], 0
movss xmm0, dword [esp + 0x14]
je 0x100457a1
mov ebx, 0x10084cc4
push ebx
push 0xbf7f7f7f
push ecx
mov ecx, dword [0x10181360]
movss dword [esp], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push 0
push ebx
addss xmm0, dword [0x10085d08]
movss dword [esp + 0x2c], xmm0
call fcn.1003ff3d
movss xmm0, dword [esp + 0x24]
fstp dword [esp + 0x2c]
subss xmm0, dword [esp + 0x2c]
push ecx
mov ecx, dword [0x10181360]
subss xmm0, dword [0x10085ca4]
movss dword [esp], xmm0
call fcn.10041178
movss xmm0, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x10158530]
add eax, 0x18
inc edi
mov dword [esp + 0x1c], eax
mov eax, dword [0x10181360]
addss xmm0, dword [eax + 0xe45]
mov eax, dword [esp + 0x1c]
movss dword [esp + 0x14], xmm0
cmp edi, dword [esp + 0x24]
jl 0x10045499
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x160
ret
mov edi, 0x1018d3d0
push edi
call fcn.1004d0ea
cmp dword [0x1018d3d0], 0xffffffff
pop ecx
jne 0x100451b6
mov eax, dword [0x10181360]
push ecx
push ecx
movss xmm0, dword [eax + 0xe45]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fstp qword [esp]
call fcn.1005c860
fstp dword [esp + 0x10]
cvttss2si eax, dword [esp + 0x10]
push edi
mov dword [0x1018d3cc], eax
call fcn.1004d0a0
add esp, 0xc
jmp 0x100451b6
mov esi, 0x1018d3d8
push esi
call fcn.1004d0ea
cmp dword [0x1018d3d8], 0xffffffff
pop ecx
jne 0x100451c7
mov eax, dword [0x10181360]
push ecx
push ecx
movss xmm0, dword [eax + 0xe45]
mulss xmm0, dword [0x1007a754]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fstp qword [esp]
call fcn.1005c860
fstp dword [esp + 0x10]
cvttss2si eax, dword [esp + 0x10]
push esi
add eax, 2
mov dword [0x1018d3d4], eax
call fcn.1004d0a0
add esp, 0xc
jmp 0x100451c7