Function at 0x10046111
Capabilities:
Connect pipe
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10046228
mov dword [ebp - 0x24], 0xada
mov dword [ebp - 0x34], 0x1000baf0
cmp dword [ebp - 0x24], 0xd13
jle 0x100461cd
and dword [ebp - 0x18], 0
jmp 0x1004614e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x76f5
jge 0x100461cd
and dword [ebp - 0x1c], 0
jmp 0x10046164
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x31f6
jge 0x100461c8
and dword [ebp - 0xc], 0
jmp 0x1004617a
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x6283
jge 0x100461c6
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x98]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0x98]
call fcn.1001d534
jmp 0x10046173
jmp 0x1004615d
jmp 0x10046147
lea eax, [ebp + 0x28]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x24], 0xa89
jge 0x100461e5
push dword [ebp - 0x34]
call fcn.10067b63
pop ecx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x10046215
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10046213
push 0
call fcn.10047074
pop ecx
jmp 0x10046223
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x100463a4
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x10046349
mov dword [ebp - 0x28], 0x1254
mov dword [ebp - 0x7c], 0x1000bb18
cmp dword [ebp - 0x28], 0x1629
jle 0x1004632b
and dword [ebp - 0x14], 0
jmp 0x10046282
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x24f0
jge 0x10046325
and dword [ebp - 4], 0
jmp 0x1004629c
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12a1
jge 0x10046320
and dword [ebp - 8], 0
jmp 0x100462b2
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x6b70
jge 0x1004631b
and dword [ebp - 0x10], 0
jmp 0x100462c8
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x5c10
jge 0x10046319
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 0x10]
shl eax, cl
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea ecx, [ebp - 0xb0]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0xb0]
call fcn.1001d534
jmp 0x100462c1
jmp 0x100462ab
jmp 0x10046295
jmp 0x1004627b
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp dword [ebp - 0x28], 0xf0d
jge 0x10046347
push dword [ebp - 0x7c]
call fcn.10067b63
pop ecx
jmp 0x100463a4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8 + section.hrebgabq]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x100463a4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret