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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4c699f
push eax
mov al, byte [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
xor ebx, ebx
cmp al, bl
mov edi, ecx
mov byte [edi + 0x219], al
je 0x4959f8
lea eax, [esp + 0x18]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov dword [esp + 0xf0], ebx
call fcn.00401120
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0xf0], 0xffffffff
je 0x495516
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x14], edx
jne 0x495516
mov eax, dword [ecx]
push 1
call dword [eax]
xor edx, edx
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
mov dword [esp + 0x14], edx
je 0x4959f8
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x4959f8
mov eax, ecx
mov eax, dword [eax + edx*4]
fld dword [eax + 0x48]
fcomp dword [0x4f5888]
fnstsw ax
test ah, 5
jp 0x4959ee
mov esi, 0xf
mov eax, str._objects_shot_bonuses_ice_on_ball.xml
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495570
sub eax, edx
push eax
push str._objects_shot_bonuses_ice_on_ball.xml
lea ecx, [esp + 0x50]
call fcn.00402cd0
push ebx
push ebx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x100], 1
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov eax, dword [esp + 0x60]
mov ebp, 0x10
cmp eax, ebp
mov byte [esp + 0xf0], 3
jb 0x4955cd
mov eax, dword [esp + 0x4c]
push eax
call fcn.004ade5d
add esp, 4
mov eax, str._texture_effect_ice_64.png
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4955f0
sub eax, edx
push eax
push str._texture_effect_ice_64.png
lea ecx, [esp + 0x6c]
call fcn.00402cd0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xf4], 4
call fcn.0042c070
cmp dword [esp + 0x7c], ebp
mov byte [esp + 0xf0], 3
jb 0x495639
mov edx, dword [esp + 0x68]
push edx
call fcn.004ade5d
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.0040d980
push eax
lea ecx, [esp + 0x88]
call fcn.0040de60
push 0xffffff
lea ecx, [esp + 0x88]
call fcn.004221c0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x84]
push eax
call fcn.0042adf0
push 1
push 1
call fcn.0040d4d0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, eax
call fcn.004016d0
mov ecx, dword [esp + 0x1c]
call fcn.00425c90
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov esi, dword [esp + 0x20]
mov byte [esp + 0xf0], 5
je 0x4956f0
mov ecx, dword [esp + 0xfc]
mov ebp, dword [esp + 0x100]
mov edx, esi
add edx, ecx
mov ecx, dword [esp + 0x24]
adc ecx, ebp
mov dword [esp + 0x30], edx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], ecx
push edx
mov ecx, eax
call fcn.00423890
mov ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x4956f6
mov dword [esp + 0x18], ebx
mov ebp, ebx
cmp ebp, ebx
mov dword [esp + 0x80], ebp
je 0x495704
inc dword [ebp + 4]
push 0xffffff
mov ecx, ebp
mov byte [esp + 0xf4], 6
call fcn.00422400
cmp ebp, ebx
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ebp
je 0x495728
inc dword [ebp + 4]
mov ecx, dword [esp + 0x14]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0xf0], 7
je 0x495783
mov edx, dword [esp + 0xfc]
mov ebp, dword [esp + 0x100]
mov ecx, esi
add ecx, edx
mov edx, dword [esp + 0x24]
adc edx, ebp
add ecx, 0xc8
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x40]
adc edx, ebx
push ecx
mov ecx, eax
mov dword [esp + 0x48], edx
call fcn.00423890
mov ebp, eax
jmp 0x495785
xor ebp, ebp
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
je 0x495790
inc dword [ebp + 4]
push 0x77ffffff
mov ecx, ebp
mov byte [esp + 0xf4], 8
call fcn.00422400
cmp ebp, ebx
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], ebp
je 0x4957b4
inc dword [ebp + 4]
mov ecx, dword [esp + 0x14]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0xf0], 9
je 0x49580f
mov edx, dword [edi + 0x228]
mov ecx, dword [edi + 0x22c]
add edx, esi
adc ecx, dword [esp + 0x24]
add edx, dword [esp + 0xfc]
adc ecx, dword [esp + 0x100]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], ecx
push edx
mov ecx, eax
call fcn.00423890
mov esi, eax
jmp 0x495811
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x49581c
inc dword [esi + 4]
push 0xffffff
mov ecx, esi
mov byte [esp + 0xf4], 0xa
call fcn.00422400
cmp esi, ebx
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], esi
je 0x495840
inc dword [esi + 4]
mov ecx, dword [esp + 0x14]
call fcn.0042b080
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + edx*4]
cmp dword [ecx + 0x44], ebx
je 0x4958be
push 1
mov eax, ecx
mov eax, dword [eax + 0x44]
cmp eax, ebx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
mov dword [ecx], eax
je 0x49586f
inc dword [eax + 4]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x44]
push 1
mov ecx, eax
call fcn.004244f0
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x44]
cmp ecx, ebx
mov dword [eax + 0x44], ebx
je 0x4958ba
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x4958ba
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x20], esp
je 0x4958d6
inc dword [eax + 4]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esp + 0x10]
push 0xbf800000
push ebx
push ebx
call fcn.00424870
push 1
push 1
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x28], esp
je 0x495910
inc dword [eax + 4]
mov byte [esp + 0xfc], 0xb
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0xfc], 0xa
call dword [edx + 0x10]
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x495941
inc dword [eax + 4]
mov ecx, dword [edx + 0x44]
cmp ecx, ebx
mov dword [edx + 0x44], eax
je 0x49595e
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x49595e
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, ebx
mov byte [esp + 0xf0], 8
je 0x49597f
mov ecx, dword [esi + 4]
dec ecx
mov eax, ecx
cmp eax, ebx
mov dword [esi + 4], ecx
jne 0x49597f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp ebp, ebx
mov byte [esp + 0xf0], 6
je 0x4959a1
mov ecx, dword [ebp + 4]
dec ecx
mov eax, ecx
cmp eax, ebx
mov dword [ebp + 4], ecx
jne 0x4959a1
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov byte [esp + 0xf0], 3
je 0x4959c4
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x4959c4
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0xf0], 0xffffffff
je 0x4959ee
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov edx, esi
cmp edx, ebx
mov dword [eax], esi
jne 0x4959ee
mov edx, dword [ecx]
push 1
call dword [edx]
mov edx, dword [esp + 0x14]
inc edx
jmp 0x495518
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe4
ret 0xc