Function at 0x10049440
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, 0x40
mov eax, dword [0x10059264]
push ebx
push esi
push edi
mov eax, dword [eax]
mov ebx, ecx
mov ecx, 0x100592ac
mov dword [ebp - 0x20], ebx
push dword [eax + 0x128]
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 0x100494a2
mov eax, dword [esi + 0x13c]
mov esi, dword [esi + 0x14c]
mov esi, dword [esi + eax*4]
jmp 0x100494a4
xor esi, esi
test esi, esi
setne al
test al, al
je 0x1004973c
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 + 0x224]
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 0x10049518
add dword [edi + 0x38], 0xffffffff
jne 0x10049518
mov ecx, edi
call fcn.1000c800
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 0x10049542
add dword [edi + 0x38], 0xffffffff
jne 0x10049542
mov ecx, edi
call fcn.1000c800
mov dword [ebp - 4], 1
push dword [edi - 4]
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 0x224]
mov ecx, 4
mov edi, dword [ebp - 0x10]
test edx, edx
lea eax, [edx - 8]
cmove eax, ecx
cmp edi, dword [eax]
je 0x1004957a
lea eax, [edx - 0xc]
neg edx
push edi
sbb edx, edx
and edx, eax
dec dword [edx + 0x2c]
lea ecx, [edx + 0xc]
call fcn.1003fb00
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 + 0x368]
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 0x100495db
add dword [edi + 0x38], 0xffffffff
jne 0x100495db
mov ecx, edi
call fcn.1000c800
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 0x10049605
add dword [edi + 0x38], 0xffffffff
jne 0x10049605
mov ecx, edi
call fcn.1000c800
mov dword [ebp - 4], 3
push dword [edi - 4]
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 0x368]
mov ecx, 4
mov edi, dword [ebp - 0x14]
test edx, edx
lea eax, [edx - 8]
cmove eax, ecx
cmp edi, dword [eax]
je 0x1004963d
lea eax, [edx - 0xc]
neg edx
push edi
sbb edx, edx
and edx, eax
dec dword [edx + 0x2c]
lea ecx, [edx + 0xc]
call fcn.1003fb00
push edi
call fcn.1004a648
add esp, 4
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x3b8]
lea eax, [edi + 8]
push ecx
push eax
push dword [eax]
call fcn.1000ce40
mov ebx, eax
test ebx, ebx
je 0x100496ed
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push str.DeletePlayer3DTextLabel__d___d_
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call fcn.100034d0
mov edi, dword [0x100595b4]
add esp, 0xc
test edi, edi
je 0x100496a9
cmp edi, fcn.100041f0
jne 0x100496b5
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 0x100496b5
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x100496b5
mov ecx, str.DeletePlayer3DTextLabel
call fcn.10004200
mov edi, 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 [0x100595b4], edi
mov dword [ebp - 0x4c], 8
call edi
add esp, 8
lea ecx, [esi + 0x3b8]
push dword [ebx]
push ebx
call fcn.1002cff0
mov edi, dword [ebp + 8]
push ecx
add edi, 8
lea ecx, [esi + 0x400]
push edi
push dword [edi]
call fcn.1000ce40
test eax, eax
je 0x10049711
push dword [eax]
lea ecx, [esi + 0x400]
push eax
call fcn.1002cff0
mov ecx, dword [esi + 0xd0]
push edi
add ecx, 0xb4
call fcn.10040750
mov esi, dword [esi]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test esi, esi
jne 0x100494b7
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.10013f10
mov eax, dword [ebp + 8]
mov esi, dword [eax]
push esi
push eax
mov eax, dword [0x10059264]
mov ecx, dword [eax]
add ecx, 0x120
call fcn.100158c0
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