Function at 0x518c70
Capabilities:
Enumerate files on windows
Get geographical location
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x582157
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5eabd8]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x5eabd8]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 8
lea ecx, [esp + 0x174]
push ecx
push 1
push 0x400
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x170]
lea edx, [eax + 1]
jmp 0x518ce0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x518ce0
sub eax, edx
cmp eax, 4
je 0x518cf5
xor eax, eax
jmp 0x518f5a
push esi
lea ecx, [esp + 0x18]
call fcn.00414a70
xor edi, edi
push str..lang
lea ecx, [esp + 0x2c]
mov dword [esp + 0x194], edi
call fcn.00414a70
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x19c], 1
call fcn.00417400
add esp, 0xc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x190], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518d59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x518f05
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esp, [esp]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x28]
call fcn.00414a70
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x19c], 4
call fcn.00417400
add esp, 0xc
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x190], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518dd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
push 8
lea edx, [esp + 0x180]
push edx
push 0x5aba3c
push str.LocaleID
push str.Info
call ebx
lea eax, [esp + 0x178]
lea edx, [eax + 1]
jmp 0x518e00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x518e00
sub eax, edx
mov esi, eax
cmp esi, 2
jl 0x518e7d
push 8
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x178]
push edx
call fcn.004c23b5
add esp, 0xc
test eax, eax
je 0x518ebf
mov al, byte [esp + 0x172]
cmp al, byte [esp + esi + 0x176]
jne 0x518e7d
mov cl, byte [esp + 0x173]
cmp cl, byte [esp + esi + 0x177]
jne 0x518e7d
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x518e60
mov ecx, dword [esp + 0x20]
sub eax, edx
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.00414fa0
mov edi, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x190], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518ea5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x518d80
jmp 0x518efa
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push eax
call fcn.00414af0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov edi, 1
mov byte [esp + 0x190], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x190], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x518f2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x190], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518f58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004adaab
mov esp, ebp
pop ebp
ret 8