Function at 0x4166d0
Capabilities:
Accept command line arguments
Get geographical location
Query environment variable

Disassembly:
mov eax, dword [0x8dc1e4]
mov ecx, dword [0x8da9dc]
sub esp, 0x84c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
je 0x4168df
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [0x42fa08]
mov edx, dword [0x42fa0c]
mov dword [esp + 0x14], eax
mov eax, dword [0x42fa10]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x42fa14]
mov ebx, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
mov eax, edi
shl eax, 4
add eax, dword [esp + 0x34]
mov esi, edi
shr esi, 5
cmp dword [0x8dc1e4], 0x1b
mov dword [esp + 0x10], eax
lea ebp, [ebx + edi]
jne 0x4167a0
push 0
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor eax, eax
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x54]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x28]
xor eax, ebp
xor edx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [0x8da9e0], edx
mov eax, dword [esp + 0x18]
add dword [0x8da9e0], eax
mov ecx, dword [0x8da9e0]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x30]
cmp dword [0x8dc1e4], 0x1be
mov dword [esp + 0x10], eax
lea esi, [ebx + ecx]
jne 0x416834
push edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x2c]
cmp dword [0x8dc1e4], 0x979
mov dword [0x8da9e8], 0xff6b3619
mov dword [0x8da9ec], 0xffffffff
mov dword [esp + 0x18], ecx
jne 0x416870
lea edx, [esp + 0x58]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub edi, dword [esp + 0x10]
add ebx, 0x61c88647
dec dword [esp + 0x20]
jne 0x416735
cmp dword [0x8dc1e4], 0x8d4
jne 0x4168a4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [eax], edi
mov dword [eax + 4], ecx
cmp dword [0x8dc1e4], 0x17
jne 0x4168ca
lea edx, [esp + 0x58]
push edx
push 0x403fd4
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [esp + 0x1c]
add ecx, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
jne 0x4166f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret