Function at 0x402295
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 0xc93b4e1
push 3
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], ebx
call fcn.0040bdd2
xor eax, eax
mov dword [esp + 0x24], 0xc87778e1
mov dword [esp + 0x20], eax
jmp 0x4022dd
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov dword [ecx + edx*4], 0x55ebda18
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 3
jl 0x4022ca
mov byte [esp + 0xf], al
cmp byte [esp + 0xf], al
je 0x4022f7
push eax
call dword [sym.imp.USER32.dll_CreateIconIndirect]
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0xffffffe9
push 1
pop esi
jle 0x40255e
push dword [esp + 0x34]
movdqa xmm0, xmmword [0xa98de0]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], 7
push ecx
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
movdqu xmmword [esp + 0x60], xmm0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.0040ee26
xor eax, eax
mov dword [esp + 0x28], 0xd633c668
mov byte [esp + 0xf], al
cmp byte [esp + 0xf], al
je 0x402367
push 0x1eb4
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
mov dword [esp + 0x1c], 0xffffffec
jmp 0x402535
mov dword [esp + 0x10], 9
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0x10
jl 0x402531
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0xfffffff8
mov dword [esp + 0x28], 0x4a126529
mov ecx, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
sub esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
neg esi
sbb esi, esi
xor edx, edx
inc esi
cmp esi, ecx
mov dword [edi + 8], esi
mov ecx, dword [esp + 0x1c]
sete dl
xor ebx, ebx
cmp ecx, edx
mov ecx, dword [esp + 0x14]
setg bl
xor edx, edx
cmp ebx, ecx
setge dl
imul edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x28], edx
xor edx, edx
cmp dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
setge dl
xor ebx, ebx
cmp ecx, edx
mov edx, dword [esp + 0x30]
setge bl
sub ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
neg ebx
sbb ebx, ebx
inc ebx
imul ebx, ecx
xor ecx, ecx
cmp ebx, 0x95dbc2a
mov dword [edx + 4], ebx
sete cl
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
je 0x402447
xor ecx, ecx
inc ecx
jmp 0x402449
mov ecx, eax
mov esi, dword [esp + 0x20]
mov dword [edi + 8], esi
mov dword [edx + 4], esi
xor edx, edx
cmp ecx, 0xf3e4c996
mov ecx, dword [esp + 0x10]
setne dl
add edx, 0xffff5279
neg edx
sbb edx, edx
inc edx
sub ecx, edx
neg ecx
sbb ecx, ecx
xor ebx, ebx
inc ecx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
setg bl
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
setle bl
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x1c]
imul ecx, dword [esp + 0x24]
imul ecx, esi
test ecx, ecx
je 0x40250d
mov dword [esp + 0x24], 0x34f97039
mov dword [esp + 0x18], 3
cmp dword [esp + 0x18], eax
jl 0x402503
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov ecx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x18]
cmp dword [ebx + 8], 0x57af
mov ecx, dword [esp + 0x38]
setle dl
imul edx, dword [ecx + esi*4]
mov dword [ecx + edi*4], edx
dec dword [esp + 0x18]
jns 0x4024c8
mov edi, ebx
mov dword [esp + 0x20], 0x9e1d6210
jmp 0x40251f
mov dword [esp + 0x28], 0x63d476fc
cmp dword [esp + 0x28], eax
jne 0x40252e
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x10
jge 0x40239f
xor esi, esi
inc esi
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], esi
jne 0x402374
lea ecx, [esp + 0x38]
call fcn.0040bea4
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xffffffe9
push 0
pop eax
jg 0x402309
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x44]
call fcn.0040bea4
mov dword [ebx], 0
jmp 0x402585
mov byte [esp + 0xf], 0
cmp byte [esp + 0xf], 0
je 0x402583
push 0
call dword [sym.imp.USER32.dll_CharNextW]
inc dword [ebx]
cmp dword [ebx], esi
jle 0x40256f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret