Function at 0x403fd0
Capabilities:
Get geographical location

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push eax
push ebp
push str.jvm.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x5c
push ebp
call esi
push 0x5c
push ebp
mov byte [eax], 0
call esi
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x404013
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, str._bin
mov esi, ebx
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x404028
add ebx, 4
mov ecx, dword [str.java_]
mov eax, ebx
mov dword [eax], ecx
mov dx, word [0x4071ac]
mov word [eax + 4], dx
mov cl, byte [0x4071ae]
add ebx, 6
mov edx, ebp
mov byte [eax + 6], cl
mov ecx, dword [esp + 0x1c]
sub edx, ebx
add edx, ecx
cmp edx, 0x18
jge 0x404060
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
push 4
lea eax, [esp + 0x14]
push eax
push 0x59
push esi
call edi
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x5a
push esi
call edi
mov al, byte [esp + 0x18]
test al, al
je 0x404126
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ax, word [0x4071b0]
mov word [edi - 1], ax
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, ebx
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov eax, dword [0x4071b4]
dec edi
mov dword [edi], eax
mov ecx, dword [0x4071b8]
mov dword [edi + 4], ecx
mov edx, dword [0x4071bc]
push 4
push ebp
mov dword [edi + 8], edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x404126
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov edi, 0x4071c0
lea esi, [esp + 0x10]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4041a6
mov edi, 0x4071c4
lea esi, [esp + 0x18]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404162
mov edi, 0x4071c8
lea esi, [esp + 0x18]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4041a6
mov edx, dword [str.zh_TW.properties]
mov ecx, ebx
mov dword [ecx], edx
mov eax, dword [0x4071d0]
mov dword [ecx + 4], eax
mov edx, dword [0x4071d4]
mov dword [ecx + 8], edx
mov eax, dword [0x4071d8]
mov dword [ecx + 0xc], eax
mov dl, byte [0x4071dc]
push 4
push ebp
mov byte [ecx + 0x10], dl
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x4041a6
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov al, byte [esp + 0x10]
test al, al
je 0x40420a
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, dword [0x4071e0]
dec edi
mov dword [edi], ecx
mov edx, dword [0x4071e4]
mov dword [edi + 4], edx
mov eax, dword [0x4071e8]
push 4
push ebp
mov dword [edi + 8], eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x40420a
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [str..properties]
dec ebx
mov dword [ebx], ecx
mov edx, dword [0x4071f0]
mov dword [ebx + 4], edx
mov eax, dword [0x4071f4]
push 4
push ebp
mov dword [ebx + 8], eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
neg eax
sbb eax, eax
pop edi
not eax
pop esi
and eax, ebp
pop ebp
pop ebx
pop ecx
ret