Function at 0x1009a9a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8cfd
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 [0x10115e28]
mov ecx, dword [0x10115e34]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10115e28]
push eax
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1009ae13
mov ecx, eax
call fcn.1002a350
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
sub eax, 2
je 0x1009aa0b
sub eax, 1
jne 0x1009ae13
mov ecx, dword [0x10115e28]
mov esi, 1
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, esi
jle 0x1009ae13
mov ecx, dword [0x10115de8]
mov eax, dword fs:[0x2c]
lea ebx, [eax + ecx*4]
mov dword [ebp - 0x14], ebx
nop dword [eax + eax]
mov ecx, dword [0x10115e28]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je case.0x1009abc6.70
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne case.0x1009abc6.70
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call dword [eax + 8]
test eax, eax
je case.0x1009abc6.70
mov eax, dword [eax + 0x14]
cmp eax, 0x1f
jg 0x1009abb1
je 0x1009ab3f
sub eax, 1
jne case.0x1009abc6.70
mov ecx, esi
call fcn.1009a900
mov edi, eax
mov ecx, 0x101185e0
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.1009b3b0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x101185e0]
cmp byte [ecx + 0xd], 0
jne 0x1009aac6
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jge 0x1009aac8
mov ecx, edx
cmp ecx, edx
je 0x1009aafb
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xa
push eax
call fcn.10028b00
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009aaec
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009aafb
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021a70
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.1009a900
mov edi, eax
mov ecx, 0x101185e8
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.1009b3b0
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x101185e8]
cmp byte [ecx + 0xd], 0
jne 0x1009ab29
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jge 0x1009ab2b
mov ecx, edx
cmp ecx, edx
je case.0x1009abc6.70
mov dword [ebp - 0x20], 0xb
jmp 0x1009ae3a
mov ecx, dword [ebx]
mov eax, dword [0x1011834c]
cmp eax, dword [ecx + 4]
jle 0x1009ab93
push 0x1011834c
call fcn.100a0bb4
add esp, 4
cmp dword [0x1011834c], 0xffffffff
jne 0x1009ab93
mov edx, str.m_bDistributed
mov dword [ebp - 4], 1
mov ecx, str.CCurrencyPack
call fcn.1009c3f0
push 0x1011834c
mov dword [0x10118350], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0b63
add esp, 4
mov eax, dword [0x10118350]
cmp byte [eax + esi], 0
jne case.0x1009abc6.70
mov dword [ebp - 0x24], 0xd
lea eax, [ebp - 0x24]
jmp 0x1009ae3d
add eax, 0xffffffbb
cmp eax, 0xc4
ja case.0x1009abc6.70
movzx eax, byte [eax + 0x1009ae70]
jmp dword [eax*4 + 0x1009ae58]
mov ecx, esi
call fcn.1002a350
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x1009abe6
sub eax, 1
jne case.0x1009abc6.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call fcn.10028b00
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009ac15
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 0x1009ae3a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021a70
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1009ae3a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021a70
jmp case.0x1009abc6.70
mov ecx, esi
call fcn.1002a350
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x1009ac5f
sub eax, 1
jne case.0x1009abc6.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 3
push eax
call fcn.10028b00
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009ac90
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 0x1009ae3a
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021a70
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x1009ae3a
mov ecx, esi
call fcn.1002a350
mov ebx, dword [eax]
mov eax, ebx
sub eax, 2
je 0x1009accb
sub eax, 1
jne 0x1009adf6
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 8]
test eax, eax
je 0x1009ada2
cmp dword [eax + 0x14], 0xd9
jne 0x1009ada2
mov ecx, esi
call fcn.10024fe0
test al, al
je 0x1009ada2
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x10118270]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x1009ad4f
push 0x10118270
call fcn.100a0bb4
add esp, 4
cmp dword [0x10118270], 0xffffffff
jne 0x1009ad4f
mov edx, str.m_hThrower
mov dword [ebp - 4], 0
mov ecx, str.CBaseGrenade
call fcn.1009c3f0
push 0x10118270
mov dword [0x10118238], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0b63
add esp, 4
mov eax, dword [0x10115e28]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x10118238]
mov ecx, dword [eax + esi]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x10115e28]
call edx
cmp eax, dword [ebp - 0x28]
jne 0x1009ada2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 9
push eax
call fcn.10028b00
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009ad93
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009ada2
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021a70
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 6
push eax
call fcn.10028b00
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009adc2
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009add1
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021a70
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.10028b00
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009ae25
mov dword [ecx], esi
add dword [eax + 4], 4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [0x10115e28]
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp esi, eax
jl 0x1009aa40
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.10021a70
jmp 0x1009adf6
mov dword [ebp - 0x20], 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.10028b00
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009ac35
mov dword [ecx], esi
add dword [eax + 4], 4
jmp case.0x1009abc6.70