Function at 0x408572
Capabilities:
Get geographical location
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00408791
push 8
pop edi
push edi
mov esi, 0x43c9e0
mov ebx, eax
push esi
push 0x1e
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b2f9
mov esi, 0x80
lea eax, [ebp - 0x104]
push esi
push eax
push 0x23
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x408602
mov ecx, 0x402218
lea eax, [ebp - 0x104]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408787
test dx, dx
je 0x4085fb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408787
add eax, 4
add ecx, 4
test dx, dx
jne 0x4085d1
xor eax, eax
mov dword [0x42e0c4], eax
and dword [0x42e58c], 0
lea eax, [ebp - 0x104]
push esi
push eax
push 0x21
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x40863e
movzx eax, word [ebp - 0x104]
sub eax, 0x30
jne 0x41b331
and dword [0x42e58c], eax
mov dword [0x42e588], 0x402204
push esi
lea eax, [ebp - 0x104]
mov dword [0x42e584], 2
push eax
push 0x24
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
push 0x31
pop ecx
test eax, eax
je 0x408673
cmp word [ebp - 0x104], cx
jne 0x408673
mov dword [0x42e584], 4
push edi
mov esi, 0x43c9d0
push esi
push 0x1d
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b371
push 0x20
pop esi
push esi
mov edi, 0x43c970
push edi
push 0x31
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b3a9
push esi
mov edi, 0x43c930
push edi
push 0x32
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b3e1
push esi
mov edi, 0x43c8f0
push edi
push 0x33
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b419
push esi
mov edi, 0x43c8b0
push edi
push 0x34
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b451
push esi
mov edi, 0x43c870
push edi
push 0x35
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b489
push esi
mov edi, 0x43c830
push edi
push 0x36
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b4c1
push esi
mov edi, 0x43c7f0
push edi
push 0x37
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b4f9
push 8
pop edi
push edi
mov esi, 0x43c9c0
push esi
push 0xe
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b52f
push edi
mov esi, 0x43c9b0
push esi
push 0xf
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b567
push 0x4021fc
push 0
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret
sbb eax, eax
or eax, 1
jmp 0x4085fd
and al, 0x52
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
call ecx
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
shl edx, 4
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
push 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00416d73
add esp, 8
mov ecx, dword [ebp - 8]
clc
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov esp, ebp
pop ebp
ret
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x500
push 0x20
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b130
add esp, 0xc
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x1c]
call fcn.00416dbd
mov dword [ebp - 0xc], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x20]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x1c]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
mov ecx, 1
test ecx, ecx
je 0x41b46b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b130
add esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov edx, dword [ebp - 0x18]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b370
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
add edx, 0x3c
push edx
mov eax, dword [ebp - 8]
push eax
invalid
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b270
add esp, 0xc
movzx edx, al
test edx, edx
je 0x41b469
mov eax, dword [ebp - 8]
jmp 0x41b46d
jmp 0x41b3f9
xor eax, eax
mov esp, ebp
pop ebp
ret
add byte [eax], al
add byte [eax], al
jmp 0x41b498
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x20]
jae 0x41b4e5
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x24]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041b3a0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b4c9
jmp 0x41b4e5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov byte [edx], 1
jmp 0x41b48f
mov esp, ebp
pop ebp
ret
add byte [eax], al
add byte [eax], al
jmp 0x41b508
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x20]
jae 0x41b53c
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x24]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
movzx eax, byte [edx]
test eax, eax
je 0x41b53a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
jmp 0x41b4ff
mov esp, ebp
pop ebp
ret
add byte [ebx + 0x40c70845], cl
and byte [eax], al
add byte [eax], al
add byte [ebp - 0x3d], bl
int3