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

Disassembly:
mov eax, 0x100e08b
call fcn.010084d8
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
lea ecx, [ebp - 0x20]
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.01008ae2
cmp dword [esi + 0x20], ebx
jne 0x100244d
call fcn.0100a183
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x1002560
cmp dword [esi + 0x4c], ebx
jne 0x1002462
call fcn.0100a183
mov dword [esi + 0x4c], eax
cmp eax, ebx
je 0x1002560
cmp dword [esi + 0x48], ebx
jne 0x1002488
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 0x1002560
mov ecx, 0x7bc
xor eax, eax
rep stosd dword es:[edi], eax
cmp dword [esi + 0x54], ebx
jne 0x10024ae
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 0x1002560
mov ecx, 0xd5d
xor eax, eax
rep stosd dword es:[edi], eax
cmp dword [esi + 0x50], ebx
jne 0x10024c3
call fcn.0100a183
mov dword [esi + 0x50], eax
cmp eax, ebx
je 0x1002560
cmp dword [esi + 0x68], ebx
jne 0x10024d8
call fcn.0100a183
mov dword [esi + 0x68], eax
cmp eax, ebx
je 0x1002560
push esi
call fcn.01006fdf
test eax, eax
je 0x1002560
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 0x1002524
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 0x1002549
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 0x100257f
mov dword [ebp - 0x2c], edi
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
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 - 0x20]
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 - 0x20]
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], eax
jge 0x100264d
push 1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Mid_int__int_
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
push 0xa
push eax
call fcn.01008d41
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
cmp byte [ebp - 0x11], 0
je 0x1002644
push 1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
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.01008d41
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 - 0x28]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
add dword [ebp - 0x1c], 2
jmp 0x10025b0
push 0
push 0
push 0xf
push edi
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1002665
and dword [ebp - 0x44], eax
jmp 0x1002560
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 - 0x20]
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 0x10027bf
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 0x1002783
cmp dword [esi + 0xc4], ebx
je 0x1002783
cmp dword [esi + 0xc0], ebx
je 0x1002783
cmp dword [esi + 0xc8], ebx
je 0x1002783
cmp dword [esi + 0xcc], ebx
je 0x1002783
cmp eax, ebx
je 0x1002783
cmp dword [esi + 0xd0], ebx
jne 0x10027bf
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 0x10027ee
lea ecx, [esi + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ecx, esi
call fcn.01002071
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x1001324
call fcn.0100885b
xor esi, esi
inc esi
jmp 0x1002562