Function at 0x10022d7
Capabilities:
Get geographical location
Link many functions at runtime

Disassembly:
mov eax, 0x100cd8b
call fcn.01007e40
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
lea ecx, [ebp - 0x14]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008381
cmp dword [esi + 0x20], ebx
jne 0x100231e
call fcn.010097cc
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x1002431
cmp dword [esi + 0x4c], ebx
jne 0x1002333
call fcn.010097cc
mov dword [esi + 0x4c], eax
cmp eax, ebx
je 0x1002431
cmp dword [esi + 0x48], ebx
jne 0x1002359
push 0x1ef0
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
mov dword [esi + 0x48], edi
cmp edi, ebx
je 0x1002431
mov ecx, 0x7bc
xor eax, eax
rep stosd dword es:[edi], eax
cmp dword [esi + 0x54], ebx
jne 0x100237f
push 0x3574
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
mov dword [esi + 0x54], edi
cmp edi, ebx
je 0x1002431
mov ecx, 0xd5d
xor eax, eax
rep stosd dword es:[edi], eax
cmp dword [esi + 0x50], ebx
jne 0x1002394
call fcn.010097cc
mov dword [esi + 0x50], eax
cmp eax, ebx
je 0x1002431
cmp dword [esi + 0x68], ebx
jne 0x10023a9
call fcn.010097cc
mov dword [esi + 0x68], eax
cmp eax, ebx
je 0x1002431
push esi
call fcn.01006afd
test eax, eax
je 0x1002431
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
push ebx
push ebx
push 0x1e
push 0x400
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call ebx
mov dword [ebp - 0x1c], eax
lea ecx, [esi + 0x60]
test eax, eax
jne 0x10023f5
push 2
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x18], eax
xor eax, eax
mov edi, dword [ebp - 0x18]
stosd dword es:[edi], eax
push 0x10013f8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x100241a
lea edi, [eax + 2]
push edi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x18], eax
mov ecx, edi
xor eax, eax
mov edi, dword [ebp - 0x18]
rep stosw word es:[edi], ax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x1e
push 0x400
call ebx
xor edi, edi
push edi
push edi
push 0x10
push 0x400
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1002450
mov dword [ebp - 0x20], edi
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
lea edi, [eax + 2]
push edi
lea ecx, [ebp - 0x14]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x18], eax
mov ecx, edi
xor eax, eax
mov edi, dword [ebp - 0x18]
rep stosw word es:[edi], ax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x10
mov edi, 0x400
push edi
call ebx
and dword [ebp - 0x1c], 0
and dword [esi + 0x5c], 0
lea ecx, [ebp - 0x14]
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], eax
jge 0x100251e
push 1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Mid_int__int_
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0xa
push eax
call fcn.01008587
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x31], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
cmp byte [ebp - 0x31], 0
je 0x1002515
push 1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Mid_int__int_
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
push 0xa
push eax
call fcn.01008587
mov ecx, dword [esi + 0x5c]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
mov dword [esi + 0x5c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
add dword [ebp - 0x1c], 2
jmp 0x1002481
push 0
push 0
push 0xf
push edi
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1002536
and dword [ebp - 0x44], eax
jmp 0x1002431
lea edi, [eax + 2]
lea ecx, [esi + 0x64]
push edi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x18], eax
mov ecx, edi
xor eax, eax
mov edi, dword [ebp - 0x18]
rep stosw word es:[edi], ax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0xf
push 0x400
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
push 0xffffffffffffffff
lea ecx, [esi + 0x60]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
push 0xffffffffffffffff
lea ecx, [esi + 0x64]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10013e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x84], eax
cmp eax, ebx
je 0x1002690
push 0x10013c8
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0xbc], eax
push 0x10013b0
push dword [esi + 0x84]
call edi
mov dword [esi + 0xc4], eax
push 0x1001398
push dword [esi + 0x84]
call edi
mov dword [esi + 0xc0], eax
push 0x1001380
push dword [esi + 0x84]
call edi
mov dword [esi + 0xc8], eax
push 0x1001364
push dword [esi + 0x84]
call edi
mov dword [esi + 0xcc], eax
push 0x1001348
push dword [esi + 0x84]
call edi
mov dword [esi + 0xd0], eax
push 0x1001328
push dword [esi + 0x84]
call edi
mov dword [esi + 0xd4], eax
cmp dword [esi + 0xbc], ebx
je 0x1002654
cmp dword [esi + 0xc4], ebx
je 0x1002654
cmp dword [esi + 0xc0], ebx
je 0x1002654
cmp dword [esi + 0xc8], ebx
je 0x1002654
cmp dword [esi + 0xcc], ebx
je 0x1002654
cmp eax, ebx
je 0x1002654
cmp dword [esi + 0xd0], ebx
jne 0x1002690
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x84], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
lea edi, [esi + 0xa4]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0xa0], eax
cmp eax, ebx
je 0x10026bf
lea ecx, [esi + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ecx, esi
call fcn.01001f97
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x1001324
call fcn.01008139
xor esi, esi
inc esi
jmp 0x1002433