Function at 0x51d624
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x5c6607
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x72b01c]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0x68]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov al, byte [0x72e68d]
mov dword [ebp - 4], 0
nop
cmp al, 0xfe
jg 0x51d255
xor ebx, ebx
jmp 0x51d27a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x72f0ac]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x72e6dc]
cmp eax, dword [ecx + 0x2c]
jg 0x51d880
mov ebx, 0x72e6c8
mov esi, dword [ebp + 0x6c]
cmp esi, 0x2e
ja case.0x51d286.15
jmp dword [esi*4 + 0x51d8d4]
push 0xe
push edi
mov ecx, ebx
call fcn.0051c900
jmp 0x51d83f
push 0xf
push edi
mov ecx, ebx
call fcn.0051c900
jmp 0x51d83f
push 0x51
push edi
mov ecx, ebx
call fcn.0051c900
jmp 0x51d83f
push 0x50
push edi
mov ecx, ebx
call fcn.0051c900
jmp 0x51d83f
push 0
push edi
mov ecx, ebx
call fcn.0051c3c0
jmp 0x51d83f
push 1
push edi
mov ecx, ebx
call fcn.0051c3c0
jmp 0x51d83f
push 0
push edi
mov ecx, ebx
call fcn.0051dfb0
jmp 0x51d83f
push 1
push edi
mov ecx, ebx
call fcn.0051dfb0
jmp 0x51d83f
push 0
push edi
mov ecx, ebx
call fcn.0051c560
jmp 0x51d83f
push 1
push edi
mov ecx, ebx
call fcn.0051c560
jmp 0x51d83f
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004cc4d0
push eax
push edi
mov ecx, ebx
call fcn.0051c6a0
jmp 0x51d83f
push 1
jmp 0x51d325
push 2
jmp 0x51d325
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004cc4d0
push eax
push edi
mov ecx, ebx
call fcn.0051d040
jmp 0x51d83f
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004cc4d0
push eax
push edi
mov ecx, ebx
call fcn.0051da70
jmp 0x51d83f
push 1
jmp 0x51d347
push 1
jmp 0x51d361
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cc2d0
push 1
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.0051e950
jmp 0x51d83f
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cc2d0
push 0
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.0051e950
jmp 0x51d83f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004ccd30
push 1
mov ecx, ebx
push dword [eax]
push edi
call fcn.0051ebc0
jmp 0x51d83f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004ccd30
push 0
mov ecx, ebx
push dword [eax]
push edi
call fcn.0051ebc0
jmp 0x51d83f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cc360
mov byte [ebp - 4], 1
push 1
push eax
push edi
mov ecx, ebx
call fcn.0051e7e0
lea ecx, [ebp - 0x10]
call fcn.004ed340
jmp 0x51d83f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cc360
mov byte [ebp - 4], 2
push 0
jmp 0x51d40d
push edi
mov ecx, ebx
call fcn.00520880
jmp 0x51d83f
lea eax, [ebp - 0x38]
push 0x400
push eax
call fcn.0051cb90
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.004b9bb0
mov ecx, dword [eax + 8]
add esp, 8
mov eax, dword [eax + 4]
mov edx, esp
mov byte [ebp - 4], 4
mov dword [edx + 4], eax
lea eax, [ebp + 0x54]
push eax
mov dword [edx], ecx
call fcn.004be2c0
add esp, 0xc
mov ecx, dword [eax]
mov bx, word [eax + 4]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x2c]
call fcn.004019e0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004019c0
test esi, esi
jne 0x51d4b2
movzx eax, word [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004ca190
jmp 0x51d83f
cmp esi, 0x24
jne 0x51d517
mov ax, word [ebp - 0x1a]
test ax, ax
je 0x51d4c5
mov ebx, dword [ebp - 0x14]
jmp 0x51d4f0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x5cb3f0]
mov ecx, ebx
call esi
mov ebx, 2
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.004bf870
movzx eax, ax
mov ecx, edi
movzx eax, ax
push eax
call fcn.004ca190
or ebx, 1
test bl, 2
je 0x51d83f
lea ecx, [ebp - 0x10]
call fcn.004b9f40
jmp 0x51d83f
test bx, bx
je 0x51d524
movzx eax, bx
mov ebx, dword [ebp - 0x14]
jmp 0x51d552
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x5cb3f0]
mov ecx, ebx
call esi
mov ebx, 4
mov byte [ebp - 4], 6
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.004bfdb0
movzx eax, ax
movzx eax, ax
mov ecx, edi
push eax
call fcn.004ca190
or ebx, 1
test bl, 4
je 0x51d83f
lea ecx, [ebp - 0x10]
call fcn.004b9f40
jmp 0x51d83f
push 2
lea eax, [ebp - 0x10]
push eax
push 0xd
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51d59c
cmp word [ebp - 0x10], 0x31
jne 0x51d59c
cmp word [ebp - 0xe], 0
je 0x51d6a9
push 0
mov ecx, edi
call fcn.004ca190
jmp 0x51d83f
push 0x7b
push edi
mov ecx, ebx
call fcn.0051c900
jmp 0x51d83f
push 0xf
lea eax, [ebp + 0x30]
push eax
push 0x28
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.0x51d286.15
push 0xffffffffffffffff
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.004b4d80
add esp, 0xc
mov ecx, edi
push eax
call fcn.004ca110
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x51d83f
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51d83f
push 4
push 2
push dword [ebp + 0x50]
call fcn.0045fe90
add esp, 0xc
jmp 0x51d83f
push 0xf
lea eax, [ebp + 0x30]
push eax
push 0x29
jmp 0x51d5c1
push 4
lea eax, [ebp + 0x54]
push eax
push 0x100c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51d6a9
push 0xffffffffffffffff
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004b4d80
push 0xa
push 0
push dword [eax + 4]
mov byte [ebp - 4], 7
push dword [eax + 8]
call fcn.004963a0
xor ecx, ecx
add esp, 0x1c
cmp ecx, edx
je 0x51d671
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x1c]
inc eax
mov ecx, edi
push eax
call fcn.004ca1c0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x51d83f
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51d83f
push 4
push 2
push dword [ebp - 0x2c]
call fcn.0045fe90
add esp, 0xc
jmp 0x51d83f
push 1
mov ecx, edi
call fcn.004ca190
jmp 0x51d83f
push 0
lea ecx, [ebp + 0x70]
call fcn.004ccda0
push eax
push edi
mov ecx, ebx
call fcn.0051c1e0
jmp 0x51d83f
mov ecx, dword [ebp + 0x80]
mov eax, ecx
and eax, 0xfffffffc
cmp eax, 0x72a9fc
je 0x51d7bd
test eax, eax
je 0x51d71f
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x51d6fb
push eax
call fcn.00480bf0
add esp, 4
mov esi, eax
mov eax, dword [0x72aa08]
test eax, eax
jne 0x51d711
push 0x72a9fc
call fcn.00480bf0
add esp, 4
cmp esi, eax
je 0x51d7bd
mov ecx, dword [ebp + 0x80]
xorps xmm0, xmm0
mov dword [ebp + 0x30], 0
movq qword [ebp + 0x28], xmm0
mov dword [ebp + 0x38], 2
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov byte [ebp - 4], 8
test cl, 1
je 0x51d75d
mov eax, dword [ebp + 0x70]
mov esi, dword [eax + 4]
add esi, eax
jmp 0x51d760
lea esi, [ebp + 0x70]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cb0f0
lea ecx, [ebp + 0x28]
push ecx
push 0x72a9fc
push esi
push dword [eax]
call fcn.0047ae70
add esp, 0x10
lea eax, [ebp + 0x28]
lea ecx, [ebp]
push eax
call fcn.0051bdf0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x51d7b3
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51d7b3
push 4
push 2
push dword [ebp + 0x40]
call fcn.0045fe90
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.004ca570
jmp 0x51d7ed
mov eax, dword [ebp + 0x70]
lea ecx, [ebp]
mov esi, dword [eax + 4]
add esi, eax
push esi
call fcn.004c9f30
mov ecx, dword [esi + 0x18]
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp + 0x20], eax
test ecx, ecx
je 0x51d7ed
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp]
mov byte [ebp - 4], 9
push eax
push edi
mov ecx, ebx
call fcn.0051e150
lea ecx, [ebp]
call fcn.004b9f70
jmp 0x51d83f
push edi
mov ecx, ebx
call fcn.0051ee60
jmp 0x51d83f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
lea ecx, [ebx + 8]
mov dword [ebx], eax
mov dword [ebx + 4], 0
call fcn.00495530
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 2
lea ecx, [ebp + 0x70]
call fcn.004ca570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.00594d69
lea esp, [ebp + 0x60]
pop ebp
ret 0x20
push 4
push edi
mov ecx, ebx
call fcn.0051c900
jmp 0x51d83f
push 8
push edi
mov ecx, ebx
call fcn.0051c900
jmp 0x51d83f
push 0x72e6dc
call fcn.0059598a
add esp, 4
cmp dword [0x72e6dc], 0xffffffff
jne 0x51d275
xorps xmm0, xmm0
movups xmmword [0x72e6cc], xmm0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x72e6c8], eax
push 0x5caab0
mov byte [0x72e68d], 0xff
call fcn.005952e1
push 0x72e6dc
call fcn.00595940
add esp, 8
jmp 0x51d275