Function at 0x10048bb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ccec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x10059264]
push ebx
push esi
push edi
mov eax, dword [eax]
mov ebx, ecx
mov ecx, 0x100592c0
mov dword [ebp - 0x20], ebx
push dword [eax + 0xc8]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.10019ce0
mov ecx, dword [0x10059264]
mov esi, dword [ecx]
cmp dword [esi + 0x140], 0
je 0x10048c12
mov eax, dword [esi + 0x13c]
mov esi, dword [esi + 0x14c]
mov esi, dword [esi + eax*4]
jmp 0x10048c14
xor esi, esi
test esi, esi
setne al
test al, al
je 0x10048f1d
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x30]
add edx, 8
lea eax, [edx + 4]
push eax
call fcn.10015490
mov edi, dword [esi + 0x14c]
add esp, 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10049d00
push dword [ebp + 8]
mov ecx, edi
sub esp, 8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10049fb0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x10048c88
add dword [edi + 0x38], 0xffffffff
jne 0x10048c88
mov ecx, edi
call fcn.1000cb00
mov dword [ebp - 4], 0
push dword [edi - 4]
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x10048cb2
add dword [edi + 0x38], 0xffffffff
jne 0x10048cb2
mov ecx, edi
call fcn.1000cb00
mov dword [ebp - 4], 1
push dword [edi - 4]
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 0x14c]
mov ecx, 4
mov edi, dword [ebp - 0x10]
test edx, edx
lea eax, [edx - 8]
cmove eax, ecx
cmp edi, dword [eax]
je 0x10048cea
lea eax, [edx - 0xc]
neg edx
push edi
sbb edx, edx
and edx, eax
dec dword [edx + 0x2c]
lea ecx, [edx + 0xc]
call fcn.1003fc50
push edi
call fcn.1004a648
add esp, 4
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
add edx, 8
lea eax, [edx + 4]
push eax
call fcn.10015490
mov edi, dword [esi + 0x290]
add esp, 4
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10049d00
push dword [ebp + 8]
mov ecx, edi
sub esp, 8
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10049fb0
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x10048d4b
add dword [edi + 0x38], 0xffffffff
jne 0x10048d4b
mov ecx, edi
call fcn.1000cb00
mov dword [ebp - 4], 2
push dword [edi - 4]
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x10048d75
add dword [edi + 0x38], 0xffffffff
jne 0x10048d75
mov ecx, edi
call fcn.1000cb00
mov dword [ebp - 4], 3
push dword [edi - 4]
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 0x290]
mov ecx, 4
mov edi, dword [ebp - 0x14]
test edx, edx
lea eax, [edx - 8]
cmove eax, ecx
cmp edi, dword [eax]
je 0x10048dad
lea eax, [edx - 0xc]
neg edx
push edi
sbb edx, edx
and edx, eax
dec dword [edx + 0x2c]
lea ecx, [edx + 0xc]
call fcn.1003fc50
push edi
call fcn.1004a648
add esp, 4
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x388]
lea eax, [ebx + 8]
push ecx
push eax
push dword [eax]
call fcn.1000ce40
mov edi, eax
test edi, edi
je 0x10048ed1
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push str.RemovePlayerMapIcon__d___d_
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call fcn.100034d0
mov ebx, dword [0x100595a8]
add esp, 0xc
test ebx, ebx
je 0x10048e19
cmp ebx, fcn.100041f0
jne 0x10048e25
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 0x10048e25
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10048e25
mov ecx, str.RemovePlayerMapIcon
call fcn.10004200
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
push 0x100595e0
mov dword [0x100595a8], ebx
mov dword [ebp - 0x4c], 8
call ebx
mov eax, dword [edi + 0xc]
add esp, 8
cmp dword [esi + 0x390], 1
mov dword [ebp - 0x1c], eax
jbe 0x10048e6c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x41c]
call fcn.10019d60
jmp 0x10048ec0
lea ebx, [esi + 0x41c]
mov dword [esi + 0x418], 0
lea eax, [ebp - 0x5c]
cmp ebx, eax
je 0x10048ec0
mov ecx, dword [ebx]
test ecx, ecx
je 0x10048eac
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000c410
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push dword [edi]
lea ecx, [esi + 0x388]
push edi
call fcn.1002cff0
mov ebx, dword [ebp + 8]
push ecx
add ebx, 8
lea ecx, [esi + 0x3d0]
push ebx
push dword [ebx]
call fcn.1000ce40
test eax, eax
je 0x10048ef5
push dword [eax]
lea ecx, [esi + 0x3d0]
push eax
call fcn.1002cff0
mov ecx, dword [esi + 0xd0]
push ebx
add ecx, 0x54
call fcn.100408f0
mov esi, dword [esi]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test esi, esi
jne 0x10048c27
mov ecx, dword [0x10059264]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
add eax, 0xc
push 0
push eax
call fcn.10013b90
mov eax, dword [ebp + 8]
mov esi, dword [eax]
push esi
push eax
mov eax, dword [0x10059264]
mov ecx, dword [eax]
add ecx, 0xc0
call fcn.10015a60
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov dword [ebx], esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret