Function at 0x496ac0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x81d8
call fcn.00632960
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.005d29a0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [eax]
push 9
push str.countryflags_index.txt
mov edx, dword [ecx + 0x14]
mov ecx, eax
call edx
mov dword [ebp - 0x81bc], eax
test eax, eax
jne 0x496b6f
push str.countryflags_index.txt
push str.couldnt_open_index_file__s
lea eax, [ebp - 0x88]
push pe_nt_image_headers32
push eax
call fcn.00623dd0
add esp, 0x10
mov ecx, esi
call fcn.005d2880
movups xmm0, xmmword [0x733fe0]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
movups xmmword [ecx], xmm0
lea ecx, [ebp - 0x88]
push ecx
push str.countryflags
push 1
mov ecx, eax
call dword [edx + 0x4c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push eax
lea ecx, [ebp - 0x81b8]
call fcn.0060e650
lea ecx, [ebp - 0x81b8]
call fcn.0060e510
mov edi, eax
test edi, edi
je 0x496dfa
push edi
call fcn.006240e0
add esp, 4
test eax, eax
je 0x496dba
cmp byte [edi], 0x23
je 0x496dba
push pe_nt_image_headers32
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.00623c10
add esp, 0xc
lea ecx, [ebp - 0x81b8]
call fcn.0060e510
test eax, eax
je 0x496dd1
cmp byte [eax], 0x3d
jne 0x496d6f
cmp byte [eax + 1], 0x3d
jne 0x496d6f
cmp byte [eax + 2], 0x20
jne 0x496d6f
add eax, 3
push eax
call fcn.00624cb0
mov edi, eax
add esp, 4
lea ecx, [edi + 1]
cmp ecx, 0x3e8
ja 0x496d4c
movaps xmm0, xmmword [0x680060]
lea eax, [ebp - 0x188]
push eax
push str.countryflags__s.png
lea eax, [ebp - 0x88]
push pe_nt_image_headers32
push eax
movups xmmword [ebp - 0x81d0], xmm0
call fcn.00623dd0
add esp, 0x10
mov ecx, esi
call fcn.005d28e0
push 0
push 0xffffffffffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 0x7c]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x81d0]
push ecx
mov ecx, eax
call edx
test al, al
jne 0x496c71
lea eax, [ebp - 0x88]
push eax
push 0x6b0674
jmp 0x496d7b
push 8
lea eax, [ebp - 0x188]
mov dword [ebp - 0x194], 0xffffffff
push eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], edi
push eax
call fcn.00623c10
add esp, 0xc
mov ecx, esi
call fcn.005d28e0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
lea ecx, [ebp - 0x88]
push ecx
push 0
lea ecx, [ebp - 0x81d0]
push ecx
lea ecx, [ebp - 0x81c0]
push ecx
mov ecx, eax
call edx
cmp dword [0x78201c], 0
mov eax, dword [eax]
mov dword [ebp - 0x194], eax
je 0x496d1f
lea eax, [ebp - 0x188]
push eax
push str.loaded_country_flag__s
lea eax, [ebp - 0x88]
push pe_nt_image_headers32
push eax
call fcn.00623dd0
add esp, 0x10
mov ecx, esi
call fcn.005d2880
movups xmm0, xmmword [0x733fe0]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
movups xmmword [ecx], xmm0
lea ecx, [ebp - 0x88]
push ecx
push str.countryflags
push 1
mov ecx, eax
call dword [edx + 0x4c]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 8]
cmp eax, dword [esi + 0x10]
je 0x496d3d
movups xmm0, xmmword [ebp - 0x1a0]
movups xmmword [eax], xmm0
add dword [esi + 0xc], 0x10
jmp 0x496dba
lea edx, [ebp - 0x1a0]
push edx
push eax
call fcn.00496290
jmp 0x496dba
push 0x3e7
push 0xffffffffffffffff
push edi
push str.country_code__i_not_within_valid_code_range___i.._i_
lea eax, [ebp - 0x108]
push pe_nt_image_headers32
push eax
call fcn.00623dd0
add esp, 0x18
jmp 0x496d8f
lea eax, [ebp - 0x188]
push eax
push str.malform_replacement_for_index__s
lea eax, [ebp - 0x108]
push pe_nt_image_headers32
push eax
call fcn.00623dd0
add esp, 0x10
mov ecx, esi
call fcn.005d2880
movups xmm0, xmmword [0x733fe0]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
movups xmmword [ecx], xmm0
lea ecx, [ebp - 0x108]
push ecx
push str.countryflags
push 1
mov ecx, eax
call dword [edx + 0x4c]
lea ecx, [ebp - 0x81b8]
call fcn.0060e510
mov edi, eax
test edi, edi
jne 0x496b90
jmp 0x496dfa
mov ecx, esi
call fcn.005d2880
movups xmm0, xmmword [0x733fe0]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
push str.unexpected_end_of_index_file
push str.countryflags
movups xmmword [ecx], xmm0
push 1
mov ecx, eax
call dword [edx + 0x4c]
push dword [ebp - 0x81bc]
call fcn.0061fe80
mov edx, dword [esi + 0xc]
mov eax, edx
mov ecx, dword [esi + 8]
sub eax, ecx
mov byte [ebp - 0x81bc], 0
push dword [ebp - 0x81bc]
sar eax, 4
push eax
push edx
push ecx
call fcn.004967e0
mov edx, dword [esi + 0xc]
add esp, 0x14
mov ecx, dword [esi + 8]
xor eax, eax
sub edx, ecx
sar edx, 4
test edx, edx
je 0x496ebc
nop
cmp dword [ecx], 0xffffffff
je 0x496ebe
inc eax
add ecx, 0x10
cmp eax, edx
jb 0x496e40
lea edi, [esi + 0x14]
push 0xfa4
push 0
push edi
call fcn.00634760
add esp, 0xc
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov edx, dword [esi + 8]
sub eax, edx
sar eax, 4
test eax, eax
je 0x496ea9
xor edi, edi
mov dword [ebp - 0x81bc], 0x3e9
nop dword [eax]
mov eax, dword [edx + edi]
lea edi, [edi + 0x10]
inc eax
cdq
idiv dword [ebp - 0x81bc]
xor eax, eax
test edx, edx
cmovg eax, edx
mov dword [esi + eax*4 + 0x14], ecx
inc ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
sub eax, edx
sar eax, 4
cmp ecx, eax
jb 0x496e80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0063292f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor eax, eax
lea edi, [esi + 0x14]
test eax, eax
je 0x496e50
lea edx, [edi + 0xfa4]
cmp edx, edi
sbb ecx, ecx
and ecx, 0xfffffc17
add ecx, 0x3e9
cmp edi, edx
ja 0x496e60
rep stosd dword es:[edi], eax
jmp 0x496e60