Function at 0x41455f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x45190c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ecx, ecx
mov eax, 0x4599fc
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x230]
call fcn.00410f1b
test byte [esi + 0x20], 2
jne 0x4148a3
push edi
mov edi, 0x459a14
cmp dword [esi + 0x14], ebx
je 0x4145d5
push dword [esi + 0x14]
mov ecx, edi
call fcn.0041a8f8
and dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x6c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
push 4
pop ecx
cmp eax, ecx
jle 0x4146e6
xor edi, edi
test eax, eax
push 5
cmovns edi, eax
xor edx, edx
pop ecx
mov eax, edi
mov dword [ebp - 0x220], edi
div ecx
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, 0x459a14
call fcn.0041a8b2
mov dword [esi + 0x14], eax
test eax, eax
je 0x41480a
push 4
pop eax
cmp edi, eax
jbe 0x4146c9
mov ecx, dword [ebp - 0x220]
lea edi, [ebp - 0x20c]
push 8
mov dword [ebp - 0x224], eax
pop ebx
push 0x3b
pop edx
cmp dx, word [edi]
jne 0x4146b0
cmp ebx, 0x200
jae 0x4148c8
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [edi - 8]
push eax
call fcn.004172e7
mov dword [ebp - 0x218], eax
test eax, eax
js 0x414699
movzx edx, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + edx*4], eax
inc byte [esi + 0x1d]
jmp 0x4146a4
cmp eax, 0x8007000e
je 0x41475e
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
add eax, 5
add edi, 0xa
add ebx, 0xa
mov dword [ebp - 0x224], eax
cmp eax, ecx
jb 0x414651
mov ebx, dword [ebp - 0x228]
cmp byte [esi + 0x1d], 0
ja 0x41487e
push dword [esi + 0x14]
mov edi, 0x459a14
mov ecx, edi
call fcn.0041a8f8
and dword [esi + 0x14], 0
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x4147f8
lea eax, [ebp - 0x24c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push str.CpgScript
push 0
call fcn.00417899
mov dword [ebp - 0x218], eax
test eax, eax
js 0x4147f8
mov eax, dword [ebp - 0x248]
xor ecx, ecx
push 4
xor ebx, ebx
pop edx
inc ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, edi
call fcn.0041a8b2
mov dword [esi + 0x14], eax
test eax, eax
jne 0x414778
mov dword [ebp - 0x218], 0x8007000e
jmp 0x414896
push dword [esi + 0x14]
mov ecx, 0x459a14
call fcn.0041a8f8
and dword [esi + 0x14], 0
mov byte [esi + 0x1d], 0
jmp 0x4148a2
xor edi, edi
cmp dword [ebp - 0x248], edi
jbe 0x4147c6
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x24c]
push dword [eax + edi*4]
call fcn.004172e7
mov dword [ebp - 0x218], eax
test eax, eax
js 0x4147b6
movzx edx, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + edx*4], eax
inc byte [esi + 0x1d]
jmp 0x4147bd
cmp eax, 0x8007000e
je 0x4147de
inc edi
cmp edi, dword [ebp - 0x248]
jb 0x414782
cmp byte [esi + 0x1d], 0
jne 0x41487e
mov eax, dword [esi + 0x14]
mov byte [esi + 0x1d], bl
and dword [eax], 0
jmp 0x41487e
push dword [esi + 0x14]
mov ecx, 0x459a14
call fcn.0041a8f8
and dword [esi + 0x14], 0
mov byte [esi + 0x1d], 0
jmp 0x414896
push 4
pop edx
push edx
mov ecx, edi
call fcn.0041a8b2
mov dword [esi + 0x14], eax
test eax, eax
jne 0x414819
mov dword [ebp - 0x218], 0x8007000e
jmp 0x4148a2
push 0x100
mov byte [esi + 0x1d], 1
and dword [eax], 0
lea eax, [ebp - 0x214]
push eax
push 4
pop eax
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x41487e
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0041660b
test eax, eax
je 0x414872
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.004197a2
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x4148a2
cmp dword [esi + 8], 0xc00
je 0x41488b
or dword [esi + 0x20], 2
and dword [ebp - 0x218], 0
test ebx, ebx
je 0x4148a2
lea eax, [ebp - 0x24c]
push eax
call fcn.00417a60
pop edi
mov esi, dword [ebp - 0x218]
lea ecx, [ebp - 0x234]
call fcn.00410106
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424816
mov esp, ebp
pop ebp
ret 4
call fcn.00425307
int3