Function at 0x1002cdc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037f07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword fs:[0x2c]
mov edx, dword [0x10041be4]
push ebx
push esi
push edi
mov edx, dword [eax + edx*4]
mov eax, dword [0x100423d4]
mov dword [ebp - 0x24], ecx
cmp eax, dword [edx + 4]
jle 0x1002ce8c
push 0x100423d4
call fcn.1003607a
add esp, 4
cmp dword [0x100423d4], 0xffffffff
jne 0x1002ce8c
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov byte [0x100423a0], 0
push eax
mov edx, str.OnPlayerEnterDynamicCP
mov dword [ebp - 0x14], 0xb
call fcn.1000b5c0
add esp, 8
cmp eax, str.OnPlayerEnterDynamicCP
jne 0x1002ce43
sub eax, 4
mov eax, dword [eax]
push 0x10038370
mov dword [0x100423a4], eax
mov dword [0x100423a8], 0
mov dword [0x100423ac], 0x3f800000
mov dword [0x100423b0], 0
mov dword [0x100423b4], 0
call fcn.100364bc
add esp, 4
push 0x100423d4
call fcn.1003603b
add esp, 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 1
push eax
add ecx, 0xb4
call fcn.100113c0
mov dword [ebp - 4], 0
mov edx, dword [eax + 4]
mov esi, dword [eax]
cmp edx, 7
jb 0x1002cebc
push str.invalid_bitset_N__position
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov ecx, edx
mov eax, 1
and ecx, 0x1f
shr edx, 5
shl eax, cl
test dword [esi + edx*4], eax
mov dword [ebp - 4], 0xffffffff
setne al
test al, al
je 0x1002cff3
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
cmp edi, dword [eax + 4]
je 0x1002cff3
mov esi, dword [edi]
cmp dword [esi + 0x74], 0
je 0x1002cf0a
mov eax, dword [esi + 0x70]
mov esi, dword [esi + 0x80]
mov esi, dword [esi + eax*4]
mov eax, dword [ebp + 0xc]
jmp 0x1002cf0c
xor esi, esi
test esi, esi
je 0x1002cfe4
mov edi, dword [ebp + 8]
push ecx
lea ebx, [esi + 8]
mov ecx, 0x100423a0
push ebx
push dword [ebx]
lea eax, [ebp - 0x18]
push eax
call fcn.1000b610
cmp dword [ebp - 0x18], 0
jne 0x1002cfd4
mov ecx, dword [esi + 0xc]
lea eax, [edi + 0xb8]
push eax
lea edx, [edi + 0x68]
lea eax, [ecx + 0x30]
push eax
push edx
lea eax, [ecx + 0xf0]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [ecx + 0x54]
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [ecx + 0x70]
push eax
call fcn.10030ce0
test al, al
je 0x1002cfd4
mov edx, dword [esi + 0xc]
xorps xmm0, xmm0
movss xmm4, dword [edx + 0x24]
comiss xmm0, xmm4
ja 0x1002cf95
add edx, 0x14
lea ecx, [edi + 0x2c]
call fcn.10020410
movss xmm1, dword [edi + 0x3c]
mulss xmm1, xmm4
cvtps2pd xmm1, xmm1
comisd xmm1, xmm0
jbe 0x1002cfd4
push ecx
push ebx
push dword [ebx]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x10041f70]
mov ecx, dword [eax]
add ecx, 0xc
call fcn.1000b610
cmp dword [ebp - 0x1c], 0
jne 0x1002cfc9
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xf8], 0
je 0x1002cfc3
mov ecx, dword [edi + 0x68]
jmp 0x1002cfc6
or ecx, 0xffffffff
mov dword [eax + 0x2c], ecx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call fcn.10031860
mov esi, dword [esi]
test esi, esi
jne 0x1002cf17
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [ebp - 0x14], edi
cmp edi, dword [eax + 4]
jne 0x1002cef1
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x74], 0
je 0x1002d1ad
mov eax, dword [0x10041f70]
mov edi, dword [eax]
cmp dword [edi + 0x14], 0
je 0x1002d018
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x20]
mov edi, dword [edi + eax*4]
jmp 0x1002d01a
xor edi, edi
test edi, edi
je 0x1002d0dd
push ecx
lea eax, [edi + 8]
mov ecx, 0x100423a0
push eax
push dword [eax]
lea eax, [ebp + 0xc]
push eax
call fcn.1000b610
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1002d0c6
mov ebx, dword [edi + 0xc]
push ebx
push str.DestroyPickup__d_
call fcn.10002ef0
mov esi, dword [0x10042268]
add esp, 8
test esi, esi
je 0x1002d085
cmp esi, fcn.10003af0
jne 0x1002d091
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1002d091
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1002d091
mov ecx, str.DestroyPickup
call fcn.10003b00
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [0x10042268], esi
push eax
push 0x10042278
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], ebx
call esi
mov eax, dword [0x10041f70]
add esp, 8
mov esi, dword [edi]
mov ecx, dword [eax]
push esi
push edi
add ecx, 0xc
call fcn.1001f3b0
mov edi, esi
jmp 0x1002d0d5
push dword [eax]
mov ecx, 0x100423a0
push eax
call fcn.10011d70
mov edi, dword [edi]
test edi, edi
jne 0x1002d022
mov eax, dword [0x100423a8]
mov ecx, dword [0x100423b4]
mov edx, dword [0x100423a4]
test eax, eax
je 0x1002d0f7
mov esi, dword [ecx + edx*4]
jmp 0x1002d0f9
xor esi, esi
test esi, esi
je 0x1002d17b
nop dword [eax]
mov eax, dword [0x10041f70]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x110]
je 0x1002d16a
mov ecx, dword [esi + 0xc]
push dword [ecx + 0x2c]
movss xmm0, dword [ecx + 0x1c]
movss xmm3, dword [ecx + 0x18]
movss xmm2, dword [ecx + 0x14]
mov edx, dword [ecx + 0x28]
push ecx
mov ecx, dword [ecx + 8]
movss dword [esp], xmm0
call fcn.10006b80
add esp, 8
cmp eax, 0xffffffff
je 0x1002d16a
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push eax
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x10041f70]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax]
add ecx, 0xc
call fcn.10031610
mov esi, dword [esi]
test esi, esi
jne 0x1002d100
mov ecx, dword [0x100423b4]
mov eax, dword [0x100423a8]
mov edx, dword [0x100423a4]
test eax, eax
je 0x1002d1ad
push ecx
lea eax, [ecx + edx*4]
mov ecx, 0x100423a0
push eax
call fcn.1000bae0
mov ecx, dword [0x100423b4]
mov eax, dword [0x100423a4]
lea eax, [ecx + eax*4]
cmp ecx, eax
je 0x1002d1ad
mov dword [ecx], 0
add ecx, 4
cmp ecx, eax
jne 0x1002d1a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8