Function at 0x100c5b90
Capabilities:
Extract resource via kernel32 functions
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10100613
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xec], edi
mov esi, dword [ebp + 8]
call fcn.100c4ad0
mov ecx, esi
call fcn.100c47b0
test al, al
jne 0x100c5be3
mov eax, 3
jmp 0x100c6515
push 0x22
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x100], ebx
test ebx, ebx
je 0x100c5bd9
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x100c5c0d
xor esi, esi
jmp 0x100c5c3f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
jne 0x100c5c26
xor esi, esi
jmp 0x100c5c3f
movzx eax, word [ecx + 0x38]
movzx esi, al
movzx eax, word [ecx + 0x3a]
shl eax, 8
or esi, eax
movzx eax, word [ecx + 0x3e]
shl esi, 0x10
or esi, eax
mov eax, dword [0x1014be3c]
push 0x10
push 1
push eax
mov dword [ebp - 0xdc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x100c5c5d
xor ecx, ecx
jmp 0x100c5c94
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
jne 0x100c5c7b
xor ecx, ecx
jmp 0x100c5c94
movzx eax, word [edx + 0x38]
movzx ecx, al
movzx eax, word [edx + 0x3a]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x3e]
shl ecx, 0x10
or ecx, eax
cmp esi, ecx
je 0x100c5ca9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
jmp 0x100c6515
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.100d6eb0
add esp, 0xc
cmp word [ebp - 0xd8], 0
je 0x100c5cf0
push 4
lea eax, [ebp - 0xfc]
push eax
push 0x20000001
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x100c5cf0
mov eax, dword [ebp - 0xfc]
jmp 0x100c5cfb
mov eax, 0x409
mov dword [ebp - 0xfc], eax
push eax
mov esi, ebx
lea ecx, [ebp - 0xf4]
push 0x12
mov edx, esi
call fcn.100c4270
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0xc]
mov edx, dword [eax]
or ebx, 0xffffffff
mov dword [ebp - 0xf8], ecx
mov ecx, dword [ecx]
sub ecx, 0x10
lea eax, [edx - 0x10]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], eax
cmp eax, ecx
je 0x100c5dad
lea eax, [ecx + 0xc]
mov dword [ebp - 0xe0], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x100c5da1
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x100c5da1
mov ecx, dword [ebp - 0xdc]
call fcn.10021e50
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0xe0]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c5d99
mov eax, dword [ebp - 0xe4]
push dword [ebp - 0xe4]
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xdc]
add eax, 0x10
mov dword [edi + 0xc], eax
jmp 0x100c5dad
push dword [edx - 0xc]
lea ecx, [edi + 0xc]
push edx
call fcn.10021eb0
mov edx, dword [ebp - 0xf4]
add edx, 0xfffffff0
mov dword [ebp - 4], 2
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c5dd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x409
push 0x13
mov edx, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.100c4270
add esp, 8
mov dword [ebp - 4], 3
lea edx, [edi + 0x10]
mov ecx, dword [eax]
mov edi, dword [edx]
sub edi, 0x10
mov dword [ebp - 0xe0], edx
lea eax, [ecx - 0x10]
mov dword [ebp - 0xdc], eax
cmp eax, edi
je 0x100c5e71
mov eax, dword [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x100c5e66
mov eax, dword [ecx - 0x10]
cmp eax, dword [edi]
jne 0x100c5e66
mov ecx, dword [ebp - 0xdc]
call fcn.10021e50
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 4
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c5e59
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xe0]
add eax, 0x10
mov dword [ecx], eax
jmp 0x100c5e71
push dword [ecx - 0xc]
push ecx
mov ecx, edx
call fcn.10021eb0
mov edx, dword [ebp - 0xe4]
add edx, 0xfffffff0
mov dword [ebp - 4], 5
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c5e95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
push dword [ebp - 0xfc]
mov edx, esi
push 0x10
call fcn.100c4270
add esp, 8
mov dword [ebp - 4], 6
mov edi, dword [ebp - 0xf4]
cmp dword [edi - 0xc], 0
lea eax, [edi - 0x10]
mov dword [ebp - 0xdc], eax
jne 0x100c5f87
push 0x409
push 0x10
mov edx, esi
lea ecx, [ebp - 0xe0]
call fcn.100c4270
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [eax]
lea eax, [edi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, eax
je 0x100c5f62
mov edi, dword [ebp - 0xdc]
mov eax, dword [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x100c5f4d
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x100c5f4d
mov ecx, edx
call fcn.10021e50
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 8
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c5f42
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xdc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xf4], edi
jmp 0x100c5f62
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.10021eb0
mov edi, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c5f83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
push 0x409
push 0x17
mov edx, esi
lea ecx, [ebp - 0xe8]
call fcn.100c4270
add esp, 8
mov ecx, dword [ebp - 0xec]
mov byte [ebp - 4], 0xa
add ecx, 0x18
mov edx, dword [eax]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ecx]
lea eax, [edx - 0x10]
sub ecx, 0x10
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe4], ecx
cmp eax, ecx
je 0x100c6043
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf0], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x100c6034
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x100c6034
mov ecx, dword [ebp - 0xdc]
call fcn.10021e50
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov edx, dword [ebp - 0xf0]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c6027
mov eax, dword [ebp - 0xe4]
push dword [ebp - 0xe4]
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xe0]
add eax, 0x10
mov dword [ecx], eax
jmp 0x100c6043
push dword [edx - 0xc]
mov ecx, dword [ebp - 0xe0]
push edx
call fcn.10021eb0
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c6064
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x409
push 0x18
mov edx, esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xdc]
call fcn.100c4270
add esp, 8
mov ecx, dword [ebp - 0xec]
mov byte [ebp - 4], 0xd
add ecx, 0x1c
mov edx, dword [eax]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ecx]
lea eax, [edx - 0x10]
sub ecx, 0x10
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe0], ecx
cmp eax, ecx
je 0x100c6124
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf0], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x100c6115
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x100c6115
mov ecx, dword [ebp - 0xe8]
call fcn.10021e50
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0xe
mov ecx, ebx
mov edx, dword [ebp - 0xf0]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c6108
mov eax, dword [ebp - 0xe0]
push dword [ebp - 0xe0]
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
add eax, 0x10
mov dword [ecx], eax
jmp 0x100c6124
push dword [edx - 0xc]
mov ecx, dword [ebp - 0xe4]
push edx
call fcn.10021eb0
mov edx, dword [ebp - 0xdc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c6145
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x409
push 0x19
mov edx, esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xdc]
call fcn.100c4270
add esp, 8
mov ecx, dword [ebp - 0xec]
mov byte [ebp - 4], 0x10
add ecx, 0x20
mov edx, dword [eax]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ecx]
lea eax, [edx - 0x10]
sub ecx, 0x10
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe0], ecx
cmp eax, ecx
je 0x100c6205
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf0], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x100c61f6
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x100c61f6
mov ecx, dword [ebp - 0xe8]
call fcn.10021e50
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0x11
mov ecx, ebx
mov edx, dword [ebp - 0xf0]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c61e9
mov eax, dword [ebp - 0xe0]
push dword [ebp - 0xe0]
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
add eax, 0x10
mov dword [ecx], eax
jmp 0x100c6205
push dword [edx - 0xc]
mov ecx, dword [ebp - 0xe4]
push edx
call fcn.10021eb0
mov edx, dword [ebp - 0xdc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x12
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c6226
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xf8]
mov byte [ebp - 4], 6
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x100c64c4
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push str._d._d._d
push edi
call fcn.100d29e0
add esp, 0x14
cmp eax, 3
jne 0x100c64c4
mov eax, dword [ebp - 0x104]
mov edx, esi
mov ecx, dword [ebp - 0xec]
push dword [ebp - 0xfc]
shl eax, 8
or eax, dword [ebp - 0x108]
shl eax, 0x10
or eax, dword [ebp - 0x10c]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.100c4270
add esp, 8
mov ecx, dword [ebp - 0xec]
add ecx, 0x14
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
mov dword [ebp - 0xe8], eax
add eax, 0xfffffff0
mov dword [ebp - 0xe4], ecx
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
cmp eax, edx
je 0x100c6351
lea eax, [edx + 0xc]
mov dword [ebp - 0xf8], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x100c6342
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
cmp eax, dword [edx]
jne 0x100c6342
mov ecx, dword [ebp - 0xe0]
call fcn.10021e50
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xf8]
mov ecx, ebx
mov byte [ebp - 4], 0x14
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c6335
mov eax, dword [ebp - 0xdc]
push dword [ebp - 0xdc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
add eax, 0x10
mov dword [ecx], eax
jmp 0x100c6351
mov eax, dword [ebp - 0xe8]
push dword [eax - 0xc]
push eax
call fcn.10021eb0
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x15
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c6372
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x100c6467
push 0x409
push 0x11
mov edx, esi
lea ecx, [ebp - 0xf0]
call fcn.100c4270
add esp, 8
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0xe4]
mov eax, dword [eax]
mov dword [ebp - 0xe8], eax
add eax, 0xfffffff0
mov dword [ebp - 0xdc], eax
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0xe0], edx
cmp eax, edx
je 0x100c6446
lea eax, [edx + 0xc]
mov dword [ebp - 0xf8], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x100c6437
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax]
cmp eax, dword [edx]
jne 0x100c6437
mov ecx, dword [ebp - 0xdc]
call fcn.10021e50
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xf8]
mov ecx, ebx
mov byte [ebp - 4], 0x17
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100c642a
mov eax, dword [ebp - 0xe0]
push dword [ebp - 0xe0]
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
add eax, 0x10
mov dword [ecx], eax
jmp 0x100c6446
mov eax, dword [ebp - 0xe8]
push dword [eax - 0xc]
push eax
call fcn.10021eb0
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x18
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100c6467
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xec]
push 0x100c4440
push 2
push 6
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov eax, dword [ebp - 0xec]
mov esi, dword [eax + 0x2c]
cmp esi, dword [eax + 0x30]
je 0x100c64be
mov edi, dword [ebp - 0x100]
mov ebx, eax
movzx eax, word [esi + 0x16]
push 0x2000
push 0x1b
push 0x16
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x18], eax
add esi, 0x1c
cmp esi, dword [ebx + 0x30]
jne 0x100c6493
mov edi, dword [ebp - 0xf4]
or ebx, 0xffffffff
mov esi, dword [ebp - 0x100]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xec]
cmp dword [ecx + 4], 0
je 0x100c64ed
mov eax, dword [ecx + 0xc]
cmp dword [eax - 0xc], 0
je 0x100c64ed
mov eax, dword [ecx + 0x14]
cmp dword [eax - 0xc], 0
je 0x100c64ed
xor esi, esi
jmp 0x100c64f7
call fcn.100c4ad0
mov esi, 1
add edi, 0xfffffff0
mov dword [ebp - 4], 0x1a
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100c6513
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 8