Function at 0x402b2b
Capabilities:
Get geographical location
Resolve dns
Set console window title
Set uefi variable

Disassembly:
push 0x274
mov eax, 0x43ecd5
call fcn.0042bb26
xor esi, esi
cmp dword [ebx + 0x4c], esi
jne 0x402b4b
mov eax, 0x80004005
jmp 0x402fe9
push esi
call fcn.0042a8e7
pop ecx
mov ecx, dword [ebx + 0x44]
cmp ecx, edx
jl 0x402b69
jg 0x402b62
mov ecx, dword [ebx + 0x40]
cmp ecx, eax
jbe 0x402b69
xor eax, eax
jmp 0x402fe9
push esi
call fcn.0042a8e7
add eax, 0xe10
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x10]
adc edx, esi
sub eax, dword [ebx + 0xc]
pop ecx
mov dword [ebx + 0x44], edx
push 0x38
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x402bde
push esi
mov eax, ebx
call fcn.00403310
add eax, 0x1c
call fcn.004031e5
call fcn.004295cd
cdq
push 0x14
pop ecx
idiv ecx
mov edi, edx
inc edi
call fcn.004295cd
cdq
idiv edi
cmp edx, edi
jg 0x402bc0
mov eax, edi
cdq
idiv edi
test edx, edx
je 0x402bc5
call fcn.00401e7a
push 0
call fcn.0042a8e7
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
pop ecx
push 0x38
cdq
pop ecx
idiv ecx
inc esi
cmp esi, eax
jb 0x402b8d
lea esi, [ebx + 0x38]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
cmp dword [ebx + 0x34], 0x10
jb 0x402bf1
mov eax, dword [ebx + 0x20]
jmp 0x402bf4
lea eax, [ebx + 0x20]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x402b41
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0
mov dword [esi], eax
call fcn.0042a8e7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 0
shr edi, 0x18
call fcn.0042a8e7
imul eax, eax, 0x63
pop ecx
cmp edi, eax
jbe 0x402c40
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
call fcn.00426054
jmp 0x402c42
xor edi, edi
mov eax, dword [esi]
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x254], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec eax
dec eax
je 0x402c67
dec eax
dec eax
je 0x402c67
sub eax, 4
jne 0x402c7b
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
call fcn.00401f1a
call fcn.0040b4a9
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x230], edi
test eax, eax
jbe 0x402fd2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x234], edi
call fcn.00418584
push dword [ebp - 0x230]
mov eax, ebx
mov dword [ebp - 4], 2
call fcn.00403310
cmp dword [eax + 0x18], 0x10
jb 0x402cd0
mov eax, dword [eax + 4]
jmp 0x402cd3
add eax, 4
push edi
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x258]
push ecx
push edi
push 0xf
push eax
call sub.DNSAPI.dll_DnsQuery_A
push edi
mov esi, eax
call fcn.0042a8e7
pop ecx
cmp esi, edi
jne 0x402f28
mov esi, dword [ebp - 0x234]
jmp 0x402e39
cmp word [esi + 8], 0xf
jne 0x402d7a
push dword [ebp - 0x230]
mov eax, ebx
call fcn.00403310
cmp dword [eax + 0x18], 0x10
jb 0x402d26
mov eax, dword [eax + 4]
jmp 0x402d29
add eax, 4
push dword [esi + 4]
push eax
call fcn.00428ed2
pop ecx
pop ecx
test eax, eax
jne 0x402d7a
movzx ecx, word [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x280], ecx
push eax
lea ecx, [ebp - 0x27c]
call fcn.00403193
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.00403489
push 0
push 1
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call fcn.004035bd
mov esi, dword [esi]
call fcn.004295cd
cdq
push 0xa
pop ecx
idiv ecx
mov edi, edx
call fcn.004295cd
cdq
push 0xa
pop ecx
idiv ecx
cmp edi, edx
setl al
test al, al
je 0x402dbf
movzx eax, al
mov dword [ebp - 0x228], eax
fild dword [ebp - 0x228]
call fcn.004397d0
fstp dword [ebp - 0x228]
fld dword [ebp - 0x228]
jmp 0x402dd2
fldz
call fcn.004396a0
fstp dword [ebp - 0x228]
fld dword [ebp - 0x228]
call fcn.004398c0
test eax, eax
je 0x402de5
call fcn.00401fae
call fcn.0042709a
call fcn.004295cd
cdq
push 0x14
pop ecx
idiv ecx
mov edi, edx
inc edi
call fcn.004295cd
cdq
idiv edi
cmp edx, edi
jg 0x402e08
mov eax, edi
cdq
idiv edi
test edx, edx
je 0x402e39
call fcn.00409a52
push 4
lea eax, [ebp - 0x25c]
push eax
push 0x20001009
mov edi, 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x20
lea eax, [ebp - 0x280]
push eax
push 0x58
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test esi, esi
jne 0x402d07
mov eax, dword [ebp - 0x240]
sub eax, dword [ebp - 0x244]
sar eax, 5
test eax, eax
jbe 0x402f26
push esi
lea eax, [ebp - 0x250]
call fcn.00403419
cmp dword [eax], 0xd
jne 0x402e7e
push esi
lea eax, [ebp - 0x250]
call fcn.00403419
add eax, 4
cmp dword [eax + 0x14], 0
jne 0x402e97
mov eax, dword [ebp - 0x240]
sub eax, dword [ebp - 0x244]
inc esi
sar eax, 5
cmp esi, eax
jb 0x402e58
jmp 0x402f26
push esi
lea eax, [ebp - 0x250]
call fcn.00403419
push dword [ebp - 0x230]
mov esi, eax
mov eax, ebx
add esi, 4
call fcn.00403310
push 0xffffffffffffffff
xor edi, edi
add eax, 0x1c
push edi
push esi
mov ecx, eax
call fcn.004034e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
shr esi, 0x18
call fcn.0042a8e7
imul eax, eax, 0x63
pop ecx
cmp esi, eax
jbe 0x402ee6
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
inc edi
mov eax, edi
dec eax
jne 0x402f1c
call fcn.00409a52
push 4
lea eax, [ebp - 0x260]
push eax
push 0x20001009
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x20
lea eax, [ebp - 0x280]
push eax
push 0x58
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x238], 1
xor edi, edi
cmp dword [ebp - 0x234], edi
je 0x402fa3
push 1
push dword [ebp - 0x234]
call sub.DNSAPI.dll_DnsFree
lea eax, [ebp - 0x229]
mov byte [ebp - 0x229], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f4d
sub eax, esi
je 0x402f96
push 0x103
lea eax, [ebp - 0x11b]
push edi
push eax
mov byte [ebp - 0x11c], cl
call fcn.00431920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
test eax, eax
je 0x402f96
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push edi
mov dword [ebp - 0x234], edi
call fcn.0042a8e7
pop ecx
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x250]
call fcn.004033ec
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x230]
xor edi, edi
cmp dword [ebp - 0x230], eax
jb 0x402c9b
mov eax, dword [ebp - 0x238]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
mov dword [ebx + 0x48], edi
add eax, 0x80004005
call fcn.0042bba9
ret