Function at 0x422854
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0xc
call fcn.004382cb
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4f7495
push ebx
add ebx, 8
push ebx
push 8
call fcn.004382cb
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.0040f690
pop ebx
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x4f711f
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.00402338
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x422923
push ebx
call fcn.004382d7
add esp, 4
push str.cGENERICsysANDROID_5.1.1sw480fttlllanguagezh_cniuidlat0did_gt1599443328448ver7.2
push dword [ebp - 0x2c]
push str.https:__apijs.ksapisrv.com_rest_n_teenage_mode_open_modHUAWEI_28VOG_AL00_29lon0country_codecnkpnKUAISHOUocGENERICegidsbh25hotfix_versh800appver7.2.4.13202nbh0socNameUNKNOWNmax_memory192ispCMCCkcv193browseType1kpfANDROID_PHONEddpi160didnetWIFIapp0ud
mov ecx, 3
call fcn.00401746
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x422950
push ebx
call fcn.004382d7
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x422964
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov dword [ebp - 4], eax
push str.osandroid
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.password1client_key3c2cd3f3token
mov ecx, 3
call fcn.00401746
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42299b
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x4f7caf
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402338
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4229df
push ebx
call fcn.004382d7
add esp, 4
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.0041254c
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x422a0f
push ebx
call fcn.004382d7
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x422a23
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.00401746
add esp, 8
mov dword [ebp - 0x20], eax
push getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x422a52
mov eax, 0x4df89c
push eax
push 1
mov ebx, 0x439920
call fcn.004382d1
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x422a78
push ebx
call fcn.004382d7
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.004132f5
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x422a94
push ebx
call fcn.004382d7
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x422aa8
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, str._rest_n_teenage_mode_open
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00422f7e
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x422ad4
push ebx
call fcn.004382d7
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x422ae8
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push str.osandroidsig
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.token
push dword [ebp - 0x10]
push str.__NStokensig
push dword [ebp - 0x14]
push str.password1client_key3c2cd3f3__NS_sig3
mov ecx, 8
call fcn.00401746
add esp, 0x20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422b32
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 8
call fcn.004382cb
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.00409b00
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x422c41
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x422c51
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x422c61
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x422c71
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x422c81
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x422c91
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x422ca1
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x422cb1
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x43bfb0
call fcn.004382d1
add esp, 0x10
call fcn.004382d7
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x422ce7
mov eax, 0x4df8cf
push eax
push 1
mov ebx, 0x439f20
call fcn.004382d1
add esp, 0x10
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x422d0d
push ebx
call fcn.004382d7
add esp, 4
lea eax, [ebp - 0x64]
push eax
call fcn.0040de88
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x422d29
push ebx
call fcn.004382d7
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x422d3d
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x20
call fcn.004382cb
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x422d9c
push ebx
call fcn.004382d7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x422db0
push ebx
call fcn.004382d7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x422dc4
push ebx
call fcn.004382d7
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x422dd8
push ebx
call fcn.004382d7
add esp, 4
pop ebx
call fcn.004382d7
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x422e13
mov eax, 0x527727
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x422e03
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, 0
jmp 0x422f06
push 1
mov eax, str.result
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x38]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x422e42
push ebx
call fcn.004382d7
add esp, 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004382d7
add esp, 4
push 0x4f7447
push dword [ebp - 0x28]
call fcn.00401ede
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x422e91
push ebx
call fcn.004382d7
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x422ea5
mov eax, 1
jmp 0x422f06
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, str._error_msg_
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x422ee0
push ebx
call fcn.004382d7
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x422ef6
push ebx
call fcn.004382d7
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, 0
jmp 0x422f06
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x422f17
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422f27
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x422f37
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x422f47
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x422f57
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x422f67
push ebx
call fcn.004382d7
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004382d7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10