Function at 0x1009ad80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8a7d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10115040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10118d8c]
mov ecx, dword [0x10118d98]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10118d8c]
push eax
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1009b1f3
mov ecx, eax
call fcn.1002a040
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x18], eax
sub ecx, 2
je 0x1009aded
sub ecx, 1
jne 0x1009b1f3
mov ecx, dword [0x10118d8c]
mov esi, 1
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, esi
jle 0x1009b1f3
mov ecx, dword [0x10118d50]
mov eax, dword fs:[0x2c]
lea ebx, [eax + ecx*4]
mov dword [ebp - 0x14], ebx
nop word [eax + eax]
mov ecx, dword [0x10118d8c]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je case.0x1009afa6.70
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne case.0x1009afa6.70
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call dword [eax + 8]
test eax, eax
je case.0x1009afa6.70
mov eax, dword [eax + 0x14]
cmp eax, 0x1f
jg 0x1009af91
je 0x1009af1f
sub eax, 1
jne case.0x1009afa6.70
mov ecx, esi
call fcn.1009abf0
mov edi, eax
mov ecx, 0x10119cf8
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.1009b880
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x10119cf8]
cmp byte [ecx + 0xd], 0
jne 0x1009aea6
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jge 0x1009aea8
mov ecx, edx
cmp ecx, edx
je 0x1009aedb
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xa
push eax
call fcn.1009b790
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009aecc
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009aedb
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.100223c0
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.1009abf0
mov edi, eax
mov ecx, 0x10119d00
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.1009b880
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x10119d00]
cmp byte [ecx + 0xd], 0
jne 0x1009af09
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jge 0x1009af0b
mov ecx, edx
cmp ecx, edx
je case.0x1009afa6.70
mov dword [ebp - 0x20], 0xb
jmp 0x1009b21a
mov ecx, dword [ebx]
mov eax, dword [0x10119a68]
cmp eax, dword [ecx + 4]
jle 0x1009af73
push 0x10119a68
call fcn.100a102d
add esp, 4
cmp dword [0x10119a68], 0xffffffff
jne 0x1009af73
mov edx, str.m_bDistributed
mov dword [ebp - 4], 1
mov ecx, str.CCurrencyPack
call fcn.1009c920
push 0x10119a68
mov dword [0x10119a6c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0fdc
add esp, 4
mov eax, dword [0x10119a6c]
cmp byte [eax + esi], 0
jne case.0x1009afa6.70
mov dword [ebp - 0x24], 0xd
lea eax, [ebp - 0x24]
jmp 0x1009b21d
sub eax, 0x45
cmp eax, 0xc4
ja case.0x1009afa6.70
movzx eax, byte [eax + 0x1009b250]
jmp dword [eax*4 + 0x1009b238]
mov ecx, esi
call fcn.1002a040
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x1009afc6
sub eax, 1
jne case.0x1009afa6.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call fcn.1009b790
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009aff5
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 0x1009b21a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.100223c0
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1009b21a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.100223c0
jmp case.0x1009afa6.70
mov ecx, esi
call fcn.1002a040
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x1009b03f
sub eax, 1
jne case.0x1009afa6.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 3
push eax
call fcn.1009b790
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009b070
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 0x1009b21a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.100223c0
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x1009b21a
mov ecx, esi
call fcn.1002a040
mov ebx, dword [eax]
mov eax, ebx
sub eax, 2
je 0x1009b0ab
sub eax, 1
jne 0x1009b1d6
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 8]
test eax, eax
je 0x1009b182
cmp dword [eax + 0x14], 0xd9
jne 0x1009b182
mov ecx, esi
call fcn.10025340
test al, al
je 0x1009b182
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x1011998c]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x1009b12f
push 0x1011998c
call fcn.100a102d
add esp, 4
cmp dword [0x1011998c], 0xffffffff
jne 0x1009b12f
mov edx, str.m_hThrower
mov dword [ebp - 4], 0
mov ecx, str.CBaseGrenade
call fcn.1009c920
push 0x1011998c
mov dword [0x10119954], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0fdc
add esp, 4
mov eax, dword [0x10118d8c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x10119954]
mov ecx, dword [eax + esi]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x10118d8c]
call edx
cmp eax, dword [ebp - 0x28]
jne 0x1009b182
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 9
push eax
call fcn.1009b790
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009b173
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009b182
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.100223c0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 6
push eax
call fcn.1009b790
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009b1a2
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009b1b1
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.100223c0
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.1009b790
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009b205
mov dword [ecx], esi
add dword [eax + 4], 4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [0x10118d8c]
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp esi, eax
jl 0x1009ae20
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.100223c0
jmp 0x1009b1d6
mov dword [ebp - 0x20], 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.1009b790
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009b015
mov dword [ecx], esi
add dword [eax + 4], 4
jmp case.0x1009afa6.70