Function at 0x439555
Capabilities:
Get geographical location
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc848
mov eax, dword fs:[0]
push eax
mov eax, 0x12e4
call fcn.004e7570
mov eax, dword [0x5415b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push 0x521a54
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x12b0]
call fcn.004bc800
and dword [ebp - 4], 0
mov ecx, ebx
push str.city
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1290]
call fcn.004bc800
push str.user_id
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1280]
call fcn.004bc800
push str.site
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x12e0]
call fcn.004bc800
push str.nick
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x12a0]
call fcn.004bc800
push str.online_token
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1250]
call fcn.004bc800
push 0x521a90
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1240]
call fcn.004bc800
push str.avatar_img
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1260]
call fcn.004bc800
push 0x521aa4
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x12c0]
call fcn.004bc800
push str.status_text
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1270]
call fcn.004bc800
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00438f27
mov esi, 0x800
lea eax, [ebp - 0x1218]
push esi
push eax
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x12b0]
call fcn.00411324
lea eax, [ebp - 0x1218]
push esi
push eax
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x1290]
call fcn.00411324
lea eax, [ebp - 0x1218]
lea esi, [edi + 0x1c]
push 0x800
push eax
mov edx, esi
lea ecx, [ebp - 0x1280]
call fcn.00411324
mov eax, dword [esi]
add esp, 0x18
cmp dword [eax - 8], 0
je 0x439720
push eax
call fcn.004d61b3
pop ecx
cmp edx, 1
jg 0x43971a
jl 0x439715
cmp eax, 0x2a05f200
jae 0x43971a
xor eax, eax
inc eax
jmp 0x43971c
xor eax, eax
mov byte [edi], al
jmp 0x43972c
push str.5000000001
mov ecx, esi
call fcn.004028a2
lea eax, [ebp - 0x1218]
push 0x800
push eax
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x12e0]
call fcn.00411324
lea eax, [ebp - 0x1218]
push 0x800
push eax
lea edx, [edi + 0x24]
lea ecx, [ebp - 0x12a0]
call fcn.00411324
add esp, 0x10
cmp byte [edi], 0
jne 0x4397b6
push 0x51e600
lea ecx, [edi + 0x24]
call fcn.004028a2
lea eax, [edi + 0x1c]
lea esi, [edi + 0x38]
push eax
mov ecx, esi
call fcn.00402a9f
push str.5000000001
push dword [esi]
call fcn.004d6cd4
pop ecx
pop ecx
test eax, eax
je 0x439914
push dword [0x543e38]
push dword [esi]
push str.hwuserid
push 0x520e98
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x439914
mov eax, dword [edi + 0x38]
cmp dword [eax - 8], 0
jne 0x439813
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004db6f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [0x543e38]
push 0x104
push eax
push 0x50e6f0
push str.hwuserid
push 0x520e98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x38]
call fcn.004028a2
push str.level_complete
mov ecx, ebx
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1230]
call fcn.004bc800
push str.level_upgrade
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x12f0]
call fcn.004bc800
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x121c]
and dword [ebp - 0x121c], 0
lea ecx, [ebp - 0x1230]
and dword [ebp - 0x1220], 0
call fcn.004112de
lea edx, [ebp - 0x1220]
lea ecx, [ebp - 0x12f0]
call fcn.004112de
mov eax, dword [ebp - 0x121c]
test eax, eax
jle 0x4398b6
mov ecx, dword [ebp - 0x1220]
test ecx, ecx
jle 0x4398b6
movd xmm1, eax
add eax, ecx
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x52c088]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si eax, xmm1
mov dword [edi + 8], eax
jmp 0x4398f6
push str.level_progress
mov ecx, ebx
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x12d0]
call fcn.004bc800
lea esi, [edi + 8]
mov byte [ebp - 4], 0xc
mov edx, esi
lea ecx, [ebp - 0x12d0]
call fcn.004112de
imul eax, dword [esi], 0xa
lea ecx, [ebp - 0x12d0]
mov byte [ebp - 4], 0xb
mov dword [esi], eax
call fcn.004bcaa0
lea ecx, [ebp - 0x12f0]
mov byte [ebp - 4], 0xa
call fcn.004bcaa0
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 9
call fcn.004bcaa0
lea ecx, [ebp - 0x1250]
call fcn.004be070
test al, al
je 0x439937
lea ecx, [ebp - 0x1250]
call fcn.004bd2b0
push eax
lea ecx, [edi + 0x14]
call fcn.004137a6
lea ecx, [ebp - 0x1240]
call fcn.004be070
test al, al
je 0x43995a
lea ecx, [ebp - 0x1240]
call fcn.004bd2b0
push eax
lea ecx, [edi + 0x2c]
call fcn.004137a6
lea ecx, [ebp - 0x1260]
call fcn.004be070
test al, al
je 0x43997d
lea ecx, [ebp - 0x1260]
call fcn.004bd2b0
push eax
lea ecx, [edi + 0x30]
call fcn.004137a6
lea eax, [ebp - 0x1218]
push 0x800
push eax
lea edx, [edi + 0x34]
lea ecx, [ebp - 0x1270]
call fcn.00411324
pop ecx
pop ecx
lea edx, [edi + 4]
lea ecx, [ebp - 0x12c0]
call fcn.004112de
cmp dword [edi + 0x10], 0
je 0x4399b3
cmp dword [edi + 0xc], 0
jne 0x4399fd
push str.timestamp
mov ecx, ebx
call fcn.004bcd40
push eax
lea ecx, [ebp - 0x1230]
call fcn.004bc800
lea edx, [edi + 0xc]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1230]
call fcn.004112de
cmp dword [edi + 0xc], 0
je 0x4399ee
push 0
call fcn.004d96a8
pop ecx
mov dword [edi + 0x10], eax
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 9
call fcn.004bcaa0
lea ecx, [ebp - 0x1270]
mov byte [ebp - 4], 8
call fcn.004bcaa0
lea ecx, [ebp - 0x12c0]
mov byte [ebp - 4], 7
call fcn.004bcaa0
lea ecx, [ebp - 0x1260]
mov byte [ebp - 4], 6
call fcn.004bcaa0
lea ecx, [ebp - 0x1240]
mov byte [ebp - 4], 5
call fcn.004bcaa0
lea ecx, [ebp - 0x1250]
mov byte [ebp - 4], 4
call fcn.004bcaa0
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 3
call fcn.004bcaa0
lea ecx, [ebp - 0x12e0]
mov byte [ebp - 4], 2
call fcn.004bcaa0
lea ecx, [ebp - 0x1280]
mov byte [ebp - 4], 1
call fcn.004bcaa0
lea ecx, [ebp - 0x1290]
mov byte [ebp - 4], 0
call fcn.004bcaa0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12b0]
call fcn.004bcaa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret