Function at 0x10037ac0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c83f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
cmp byte [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
je 0x10037af9
inc dword [ebx + 0x1c]
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x3c]
jb 0x1003821c
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x3c8], edx
je 0x10037cc3
mov eax, dword [ebx + 0x3c4]
mov edi, dword [ebx + 0x3d4]
mov edi, dword [edi + eax*4]
test edi, edi
je 0x10038215
cmp byte [ebp + 0xc], 0
je 0x10037b37
mov eax, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [eax + 0x70]
ja 0x10038215
lea ecx, [ebx + 0x378]
lea eax, [edi + 8]
push ecx
push eax
push dword [eax]
call fcn.1000ce40
mov esi, eax
test esi, esi
je 0x10037ca2
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x7c]
push eax
push ecx
push str.RemovePlayerMapIcon__d___d_
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
call fcn.100034d0
mov eax, dword [0x100595a8]
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x10037ba6
cmp eax, fcn.100041f0
jne 0x10037bb0
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 0x10037ba1
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10037ba6
mov eax, dword [ebp + 8]
jmp 0x10037bb0
mov ecx, str.RemovePlayerMapIcon
call fcn.10004200
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0x100595e0
mov dword [0x100595a8], eax
mov dword [ebp - 0x5c], 8
call eax
add esp, 4
lea eax, [edi + 8]
push eax
push dword [eax]
mov eax, dword [0x10059264]
mov ecx, dword [eax]
add ecx, 0xc0
call fcn.1000ce40
test eax, eax
je 0x10037c1a
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x3c], 0
je 0x10037c1a
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 4
lea ecx, [ecx + 0xc4]
call fcn.1003db80
cmp dword [ebx + 0x380], 1
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
jbe 0x10037c3a
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x40c]
call fcn.10019d60
jmp 0x10037c94
lea eax, [ebx + 0x40c]
mov dword [ebx + 0x408], 0
lea ecx, [ebp - 0x6c]
cmp eax, ecx
je 0x10037c94
mov ecx, dword [eax]
test ecx, ecx
je 0x10037c80
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000c410
lea eax, [ebx + 0x40c]
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]
lea ecx, [ebx + 0x378]
push esi
call fcn.1002cff0
mov esi, dword [edi]
lea ecx, [ebx + 0x3c0]
push esi
push edi
call fcn.1002cff0
mov edx, dword [ebp - 0x14]
mov edi, esi
test esi, esi
jne 0x10037b21
jmp 0x10038215
mov eax, dword [ebx + 0x128]
mov esi, 4
test eax, eax
mov dword [ebp - 0x20], esi
lea edi, [eax - 8]
cmove edi, esi
mov edi, dword [edi]
mov edi, dword [edi + 0x14]
lea eax, [edi - 0x10]
neg edi
sbb edi, edi
and edi, eax
mov esi, dword [ebx + 0x128]
xorps xmm1, xmm1
test esi, esi
lea eax, [esi - 8]
cmove eax, dword [ebp - 0x20]
cmp edi, dword [eax]
je 0x10038215
cmp byte [ebp + 0xc], 0
je 0x10037d14
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ecx + 0x70]
ja 0x10038215
mov eax, dword [edi + 0xc]
lea ecx, [ebx + 0x378]
add eax, 0x14
mov dword [ebp - 0x1c], ecx
push ecx
push eax
push dword [eax]
call fcn.1000ce40
test eax, eax
setne al
test al, al
je 0x10037d6c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
call fcn.1003fb70
lea eax, [esi - 0xc]
neg esi
push edi
sbb esi, esi
and esi, eax
dec dword [esi + 0x2c]
lea ecx, [esi + 0xc]
call fcn.1003fc50
push edi
call fcn.1004a648
mov edi, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x10037ce7
mov eax, dword [ebx + 0x380]
cmp eax, dword [ebx + 0x70]
jne 0x10038072
mov ecx, dword [ebx + 0x26c]
mov edx, 4
test ecx, ecx
lea eax, [ecx - 8]
cmove eax, edx
lea esi, [ecx - 8]
cmove esi, edx
mov eax, dword [eax]
mov esi, dword [esi]
mov eax, dword [eax + 0x14]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
cmp esi, eax
je 0x10038063
test esi, esi
je 0x10037db8
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037dbf
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax]
cmp eax, dword [edi]
jl 0x10037e44
test esi, esi
je 0x10037de5
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037dec
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
movss xmm0, dword [eax + 4]
comiss xmm0, xmm1
jbe 0x10038063
test esi, esi
je 0x10037e1a
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037e21
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
movss xmm0, dword [eax + 4]
comiss xmm0, dword [edi + 4]
jbe 0x10038063
test esi, esi
je 0x10037e50
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037e57
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
push ecx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x1c]
add eax, 8
push eax
push dword [eax]
call fcn.1000ce40
mov ebx, eax
test ebx, ebx
setne al
test al, al
je 0x10037fa7
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x7c]
push eax
push str.RemovePlayerMapIcon__d___d_
mov dword [ebp - 0x24], eax
call fcn.100034d0
mov eax, dword [0x100595a8]
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10037edf
cmp eax, fcn.100041f0
jne 0x10037ee9
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 0x10037eda
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10037edf
mov eax, dword [ebp - 0x18]
jmp 0x10037ee9
mov ecx, str.RemovePlayerMapIcon
call fcn.10004200
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x100595e0
mov dword [0x100595a8], eax
mov dword [ebp - 0x68], 8
call eax
add esp, 8
test esi, esi
je 0x10037f1b
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037f22
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x3c], 0
je 0x10037f85
test esi, esi
je 0x10037f4b
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037f52
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], 4
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 8]
lea ecx, [ecx + 0xc4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1003db80
mov eax, dword [ebp + 8]
push dword [eax + 0x380]
lea ecx, [eax + 0x408]
push dword [ebx + 0xc]
call fcn.10019ce0
push dword [ebx]
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.1002cff0
test esi, esi
je 0x10037fb3
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037fba
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax + 0xc]
cmp dword [eax + 4], 0
je 0x10038015
test esi, esi
je 0x10037fe3
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x10037fea
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0xc0]
add eax, 8
add ecx, 0x54
push eax
call fcn.100408f0
jmp 0x10038018
mov ebx, dword [ebp + 8]
test esi, esi
je 0x10038024
add esi, 0x10
mov dword [ebp - 0x18], esi
jmp 0x1003802b
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x26c]
lea eax, [esi - 0x10]
neg esi
sbb esi, esi
and esi, eax
lea eax, [ecx - 0xc]
neg ecx
push esi
sbb ecx, ecx
and ecx, eax
dec dword [ecx + 0x2c]
add ecx, 0xc
call fcn.1003fc50
push esi
call fcn.1004a648
add esp, 4
mov eax, dword [ebx + 0x380]
cmp eax, dword [ebx + 0x70]
je 0x100381ec
mov eax, dword [ebx + 0x40c]
cmp eax, dword [ebx + 0x410]
je 0x100380c2
mov esi, dword [eax]
mov eax, dword [ebx + 0x410]
mov edx, eax
mov ecx, dword [ebx + 0x40c]
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 8
jl 0x100380b9
lea edx, [eax - 4]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov dword [edx], eax
lea eax, [ebp - 0x28]
push ecx
sub edx, ecx
push eax
sar edx, 2
push edx
call fcn.10019e30
add esp, 0xc
add dword [ebx + 0x410], 0xfffffffc
jmp 0x100380ce
inc dword [ebx + 0x408]
mov esi, dword [ebx + 0x408]
mov eax, dword [edi + 0xc]
mov edx, esi
push dword [eax + 0x44]
movss xmm0, dword [eax + 0x24]
push dword [eax + 8]
movss xmm3, dword [eax + 0x20]
push dword [eax + 0x48]
movss xmm2, dword [eax + 0x1c]
push ecx
mov ecx, dword [ebx + 0x7c]
movss dword [esp], xmm0
call fcn.10005870
mov eax, dword [edi + 0xc]
add esp, 0x10
cmp byte [eax + 0x3c], 0
je 0x10038124
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 4
lea ecx, [ecx + 0xb8]
call fcn.1003db80
mov eax, dword [edi + 0xc]
lea ecx, [ebx + 0x378]
mov dword [ebp - 0x2c], esi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10041650
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
cmp dword [eax + 4], 0
je 0x100381af
push ecx
lea edx, [edi + 8]
lea ecx, [ebp - 0x48]
call fcn.10015490
add esp, 4
push eax
push eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
mov ecx, dword [ebx + 0xc0]
push eax
add ecx, 0x54
call fcn.10016950
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x100381af
add dword [esi + 0x38], 0xffffffff
jne 0x100381af
mov ecx, esi
call fcn.1000cb00
mov dword [ebp - 4], 1
push dword [esi - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebx + 0x128]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.1003fb70
lea eax, [esi - 0xc]
neg esi
push edi
sbb esi, esi
and esi, eax
dec dword [esi + 0x2c]
lea ecx, [esi + 0xc]
call fcn.1003fc50
push edi
call fcn.1004a648
mov edi, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x10037ce7
mov edi, dword [ebx + 0xe0]
push dword [ebp + 0xc]
lea eax, [edi - 0xc]
neg edi
sbb edi, edi
and edi, eax
lea ecx, [edi + 0xc]
call fcn.1000c5c0
lea ecx, [edi + 0xc]
call fcn.1003fa60
mov dword [edi + 0x2c], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [ebx + 0xe0]
mov edx, 0x2c
test eax, eax
lea ecx, [eax + 0x20]
cmove ecx, edx
cmp dword [ecx], 0
jne 0x1003826d
cmp dword [ebx + 0x3c8], 0
jne 0x1003826d
mov edi, dword [ebx + 0x224]
push dword [ebp + 0xc]
lea eax, [edi - 0xc]
neg edi
sbb edi, edi
and edi, eax
lea ecx, [edi + 0xc]
call fcn.1000c5c0
lea ecx, [edi + 0xc]
call fcn.1003fa60
mov dword [edi + 0x2c], 0
and dword [ebx + 0xd4], 0xffffffef
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8