Function at 0x1009a690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a840d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10112040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10115de8]
mov ecx, dword [0x10115df4]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10115de8]
push eax
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1009ab03
mov ecx, eax
call fcn.1002a3a0
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
sub eax, 2
je 0x1009a6fb
sub eax, 1
jne 0x1009ab03
mov ecx, dword [0x10115de8]
mov esi, 1
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, esi
jle 0x1009ab03
mov ecx, dword [0x10115da8]
mov eax, dword fs:[0x2c]
lea ebx, [eax + ecx*4]
mov dword [ebp - 0x14], ebx
nop dword [eax + eax]
mov ecx, dword [0x10115de8]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je case.0x1009a8b6.70
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne case.0x1009a8b6.70
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call dword [eax + 8]
test eax, eax
je case.0x1009a8b6.70
mov eax, dword [eax + 0x14]
cmp eax, 0x1f
jg 0x1009a8a1
je 0x1009a82f
sub eax, 1
jne case.0x1009a8b6.70
mov ecx, esi
call fcn.1009a5f0
mov edi, eax
mov ecx, 0x10116d58
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.1009b190
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x10116d58]
cmp byte [ecx + 0xd], 0
jne 0x1009a7b6
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jge 0x1009a7b8
mov ecx, edx
cmp ecx, edx
je 0x1009a7eb
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xa
push eax
call fcn.1009b0a0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009a7dc
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009a7eb
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10022290
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.1009a5f0
mov edi, eax
mov ecx, 0x10116d60
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.1009b190
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x10116d60]
cmp byte [ecx + 0xd], 0
jne 0x1009a819
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jge 0x1009a81b
mov ecx, edx
cmp ecx, edx
je case.0x1009a8b6.70
mov dword [ebp - 0x20], 0xb
jmp 0x1009ab2a
mov ecx, dword [ebx]
mov eax, dword [0x10116ac8]
cmp eax, dword [ecx + 4]
jle 0x1009a883
push 0x10116ac8
call fcn.100a090d
add esp, 4
cmp dword [0x10116ac8], 0xffffffff
jne 0x1009a883
mov edx, str.m_bDistributed
mov dword [ebp - 4], 1
mov ecx, str.CCurrencyPack
call fcn.1009c240
push 0x10116ac8
mov dword [0x10116acc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
add esp, 4
mov eax, dword [0x10116acc]
cmp byte [eax + esi], 0
jne case.0x1009a8b6.70
mov dword [ebp - 0x24], 0xd
lea eax, [ebp - 0x24]
jmp 0x1009ab2d
add eax, 0xffffffbb
cmp eax, 0xc4
ja case.0x1009a8b6.70
movzx eax, byte [eax + 0x1009ab60]
jmp dword [eax*4 + 0x1009ab48]
mov ecx, esi
call fcn.1002a3a0
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x1009a8d6
sub eax, 1
jne case.0x1009a8b6.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call fcn.1009b0a0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009a905
mov dword [ecx], esi
add dword [eax + 4], 4
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1009ab2a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10022290
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1009ab2a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10022290
jmp case.0x1009a8b6.70
mov ecx, esi
call fcn.1002a3a0
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x1009a94f
sub eax, 1
jne case.0x1009a8b6.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 3
push eax
call fcn.1009b0a0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009a980
mov dword [ecx], esi
add dword [eax + 4], 4
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x1009ab2a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10022290
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x1009ab2a
mov ecx, esi
call fcn.1002a3a0
mov ebx, dword [eax]
mov eax, ebx
sub eax, 2
je 0x1009a9bb
sub eax, 1
jne 0x1009aae6
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 8]
test eax, eax
je 0x1009aa92
cmp dword [eax + 0x14], 0xd9
jne 0x1009aa92
mov ecx, esi
call fcn.100256b0
test al, al
je 0x1009aa92
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x101169ec]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x1009aa3f
push 0x101169ec
call fcn.100a090d
add esp, 4
cmp dword [0x101169ec], 0xffffffff
jne 0x1009aa3f
mov edx, str.m_hThrower
mov dword [ebp - 4], 0
mov ecx, str.CBaseGrenade
call fcn.1009c240
push 0x101169ec
mov dword [0x101169b4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
add esp, 4
mov eax, dword [0x10115de8]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x101169b4]
mov ecx, dword [eax + esi]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x10115de8]
call edx
cmp eax, dword [ebp - 0x28]
jne 0x1009aa92
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 9
push eax
call fcn.1009b0a0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009aa83
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009aa92
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10022290
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 6
push eax
call fcn.1009b0a0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009aab2
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009aac1
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10022290
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
add eax, 7
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1009b0a0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009ab15
mov dword [ecx], esi
add dword [eax + 4], 4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [0x10115de8]
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp esi, eax
jl 0x1009a730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10022290
jmp 0x1009aae6
mov dword [ebp - 0x20], 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.1009b0a0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009a925
mov dword [ecx], esi
add dword [eax + 4], 4
jmp case.0x1009a8b6.70