Function at 0x1002b8c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.1001f340
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1001f340
mov esi, eax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x18], ebx
cmp ebx, dword [eax + 4]
je 0x1002bbf4
mov edi, dword [ebx]
cmp dword [edi + 0x44], 0
je 0x1002b93b
mov eax, dword [edi + 0x40]
mov edi, dword [edi + 0x50]
mov edi, dword [edi + eax*4]
jmp 0x1002b93d
xor edi, edi
test edi, edi
setne al
test al, al
je 0x1002bbdf
mov esi, dword [ebp + 8]
lea edx, [esi + 0x28]
mov dword [ebp - 0x1c], edx
lea ebx, [esi + 0xd0]
nop dword [eax]
mov ecx, dword [edi + 0xc]
lea eax, [esi + 0xb8]
movss xmm1, dword [0x1003d230]
push eax
movss dword [ebp - 0x10], xmm1
lea eax, [ecx + 0x30]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [ecx + 0xf0]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ecx + 0x54]
push eax
push edx
lea eax, [ecx + 0x70]
push eax
call fcn.10030ce0
test al, al
je 0x1002b9c9
mov eax, dword [edi + 0xc]
xorps xmm0, xmm0
comiss xmm0, dword [eax + 0x24]
jbe 0x1002b9b2
movss xmm1, dword [0x1003d248]
jmp 0x1002b9c4
lea edx, [eax + 0x14]
lea ecx, [esi + 0x2c]
call fcn.10020410
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
push ecx
lea eax, [edi + 8]
mov ecx, ebx
push eax
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1000b610
mov ecx, dword [edi + 0xc]
movss xmm0, dword [ecx + 0x24]
mulss xmm0, dword [esi + 0x48]
comiss xmm0, xmm1
jbe 0x1002baaa
cmp dword [ebp - 0x14], 0
sete al
test al, al
je 0x1002ba36
lea eax, [edi + 0xc]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100116c0
add esp, 4
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.100311f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.100312f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
jmp 0x1002ba8d
cmp dword [ecx + 4], 0
setne al
test al, al
je 0x1002ba55
mov ecx, dword [esi + 0x5c]
lea eax, [edi + 8]
push eax
push eax
lea eax, [ebp - 0x54]
add ecx, 0x3c
push eax
call fcn.10031a80
lea eax, [edi + 0xc]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x3c]
call fcn.100116c0
add esp, 4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.100311f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100312f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1002bbca
add dword [ecx + 0x20], 0xffffffff
jne 0x1002bbca
push ecx
call fcn.1000c6e0
jmp 0x1002bbca
mov esi, dword [ebp - 0x14]
test esi, esi
setne al
test al, al
je 0x1002bbc7
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0xc]
push eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ecx]
push ecx
push str.RemovePlayerMapIcon__d___d_
mov dword [ebp - 0x20], ecx
call fcn.10002ef0
mov eax, dword [0x10042250]
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002bb0f
cmp eax, fcn.10003af0
jne 0x1002bb19
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 0x1002bb0a
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1002bb0f
mov eax, dword [ebp - 0x10]
jmp 0x1002bb19
mov ecx, str.RemovePlayerMapIcon
call fcn.10003b00
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x10042278
mov dword [0x10042250], eax
mov dword [ebp - 0x68], 8
call eax
mov eax, dword [esi + 0xc]
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xd8], 1
jbe 0x1002bb62
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [eax + 0x11c]
call fcn.100141c0
jmp 0x1002bbbd
mov dword [eax + 0x118], 0
lea ecx, [ebp - 0x78]
add eax, 0x11c
cmp eax, ecx
je 0x1002bbbd
mov ecx, dword [eax]
test ecx, ecx
je 0x1002bba9
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000ab70
mov eax, dword [ebp + 8]
add eax, 0x11c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
push dword [esi]
mov ecx, ebx
push esi
call fcn.1001f3b0
mov esi, dword [ebp + 8]
mov edi, dword [edi]
lea edx, [esi + 0x28]
test edi, edi
setne al
test al, al
jne 0x1002b960
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
add ebx, 4
mov dword [ebp - 0x18], ebx
cmp ebx, dword [eax + 4]
jne 0x1002b928
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
cmp edi, eax
je 0x1002c0d3
mov ebx, dword [ebp + 8]
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebx + 0xd8]
cmp eax, dword [ebx + 0x1c]
jne 0x1002bf47
mov ecx, dword [esi]
cmp esi, ecx
je 0x1002bf38
mov dl, byte [esi + 0xd]
mov eax, esi
test dl, dl
je 0x1002bc37
mov eax, dword [esi + 8]
jmp 0x1002bc7f
cmp byte [ecx + 0xd], 0
jne 0x1002bc5d
mov eax, ecx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x1002bc7c
nop dword [eax + eax]
mov eax, edx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1002bc50
jmp 0x1002bc7c
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002bc75
cmp eax, dword [edx]
jne 0x1002bc75
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002bc66
cmp byte [eax + 0xd], 0
cmove eax, edx
mov dl, byte [esi + 0xd]
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [0x1003d1b0]
jbe 0x1002bf38
mov eax, esi
test dl, dl
je 0x1002bc9c
mov eax, dword [esi + 8]
jmp 0x1002bcdf
cmp byte [ecx + 0xd], 0
jne 0x1002bcbd
mov eax, ecx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x1002bcdc
nop dword [eax]
mov eax, edx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1002bcb0
jmp 0x1002bcdc
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002bcd5
cmp eax, dword [edx]
jne 0x1002bcd5
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002bcc6
cmp byte [eax + 0xd], 0
cmove eax, edx
mov dl, byte [esi + 0xd]
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [edi + 0x10]
jbe 0x1002bf38
mov eax, esi
test dl, dl
je 0x1002bcf9
mov ecx, dword [esi + 8]
jmp 0x1002bd3e
cmp byte [ecx + 0xd], 0
jne 0x1002bd1d
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x1002bd3e
nop dword [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x1002bd10
jmp 0x1002bd3e
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002bd35
cmp eax, dword [edx]
jne 0x1002bd35
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002bd26
cmp byte [eax + 0xd], 0
mov ecx, eax
cmove ecx, edx
mov eax, dword [ecx + 0x14]
lea ecx, [ebx + 0xd0]
add eax, 0xc
mov dword [ebp - 0x18], ecx
push ecx
push eax
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.1000b610
mov ebx, dword [ebp - 0x24]
test ebx, ebx
setne al
test al, al
je 0x1002be12
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ecx + 0x28]
push ecx
push str.RemovePlayerMapIcon__d___d_
mov dword [ebp - 0x20], ecx
call fcn.10002ef0
mov eax, dword [0x10042250]
add esp, 0xc
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1002bdc0
cmp eax, fcn.10003af0
jne 0x1002bdca
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 0x1002bdbb
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1002bdc0
mov eax, dword [ebp + 0xc]
jmp 0x1002bdca
mov ecx, str.RemovePlayerMapIcon
call fcn.10003b00
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x10042278
mov dword [0x10042250], eax
mov dword [ebp - 0x68], 8
call eax
mov eax, dword [ebp + 8]
add esp, 8
push dword [eax + 0xd8]
lea ecx, [eax + 0x118]
push dword [ebx + 0xc]
call fcn.10014140
push dword [ebx]
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.1001f3b0
mov bl, byte [esi + 0xd]
mov ecx, esi
test bl, bl
je 0x1002be20
mov eax, dword [esi + 8]
jmp 0x1002be5f
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002be3e
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002be5f
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002be31
jmp 0x1002be5f
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002be56
cmp ecx, dword [edx]
jne 0x1002be56
mov ecx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002be47
cmp byte [ecx + 0xd], 0
mov eax, ecx
cmove eax, edx
mov eax, dword [eax + 0x14]
cmp dword [eax + 4], 0
setne al
test al, al
je 0x1002bed5
mov ecx, esi
test bl, bl
je 0x1002be78
mov eax, dword [esi + 8]
jmp 0x1002bebe
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002be9d
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002bebe
nop dword [eax]
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002be90
jmp 0x1002bebe
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002beb5
cmp ecx, dword [edx]
jne 0x1002beb5
mov ecx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002bea6
cmp byte [ecx + 0xd], 0
mov eax, ecx
cmove eax, edx
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 0x14]
add eax, 0xc
push eax
mov ecx, dword [ebx + 0x5c]
add ecx, 0x3c
call fcn.10030f50
jmp 0x1002bed8
mov ebx, dword [ebp + 8]
cmp byte [esi + 0xd], 0
je 0x1002bee3
mov eax, dword [esi + 8]
jmp 0x1002bf28
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002bf01
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002bf28
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002bef4
jmp 0x1002bf28
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x1002bf1f
nop word [eax + eax]
cmp esi, dword [ecx]
jne 0x1002bf1f
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1002bf10
cmp byte [esi + 0xd], 0
mov eax, esi
cmove eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1002f7d0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebx + 0xd8]
cmp eax, dword [ebx + 0x1c]
je 0x1002c0d3
mov eax, dword [ebx + 0x11c]
cmp eax, dword [ebx + 0x120]
sete al
test al, al
jne 0x1002bfb5
mov eax, dword [ebx + 0x11c]
mov dl, byte [ebx + 0x128]
mov ecx, dword [ebx + 0x11c]
mov byte [ebp - 0x14], dl
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x120]
mov esi, eax
sub esi, ecx
mov edx, esi
and edx, 0xfffffffc
cmp edx, 8
jl 0x1002bfa9
mov edx, dword [eax - 4]
push dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx]
mov dword [eax - 4], edx
lea eax, [ebp + 0xc]
push eax
lea eax, [esi - 4]
sar eax, 2
push eax
call fcn.100142a0
add esp, 0xc
add dword [ebx + 0x120], 0xfffffffc
mov esi, dword [ebp - 0x20]
jmp 0x1002bfc1
inc dword [ebx + 0x118]
mov esi, dword [ebx + 0x118]
mov eax, dword [edi + 0x14]
mov edx, esi
push dword [eax + 0x28]
movss xmm0, dword [eax + 0x1c]
push dword [eax + 8]
movss xmm3, dword [eax + 0x18]
push dword [eax + 0x2c]
movss xmm2, dword [eax + 0x14]
push ecx
mov ecx, dword [ebx + 0x28]
movss dword [esp], xmm0
call fcn.10005010
mov eax, dword [edi + 0x14]
lea ecx, [ebx + 0xd0]
add esp, 0x10
mov dword [ebp - 0x40], esi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.10031610
mov edx, dword [edi + 0x14]
lea ecx, [edi + 0x14]
cmp dword [edx + 4], 0
setne al
test al, al
je 0x1002c083
push ecx
add edx, 0xc
lea ecx, [ebp - 0x4c]
call fcn.100116c0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov dword [eax + 4], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0x5c]
push eax
push eax
lea eax, [ebp - 0x54]
add ecx, 0x3c
push eax
call fcn.100128a0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1002c06c
add dword [ecx + 0x20], 0xffffffff
jne 0x1002c06c
push ecx
call fcn.1000c6e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1002c083
add dword [ecx + 0x20], 0xffffffff
jne 0x1002c083
push ecx
call fcn.1000c6e0
cmp byte [edi + 0xd], 0
jne 0x1002c0c7
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
jne 0x1002c0ac
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
jne 0x1002c0c7
nop dword [eax]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x1002c0a0
jmp 0x1002c0c7
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x1002c0c5
cmp edi, dword [eax + 8]
jne 0x1002c0c5
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1002c0b5
mov edi, eax
mov esi, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0x34]
jne 0x1002bc10
push esi
push dword [esi]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1002ffe0
push dword [ebp - 0x2c]
call fcn.100364d1
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.1002ffe0
push dword [ebp - 0x34]
call fcn.100364d1
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8