Function at 0x4c2800
Capabilities:
Extract resource via kernel32 functions
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a52c6
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x63434c]
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 ebx, ecx
movzx eax, word [ebp + 8]
push 0x5c6d14
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c2ae1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c2ae1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4c2ae1
push eax
mov ecx, ebx
call fcn.004c3250
test eax, eax
je 0x4c2ae1
mov eax, dword [ebx + 4]
sub eax, 0x10
push eax
call fcn.00429b20
mov esi, eax
add esp, 4
or ecx, 0xffffffff
mov edi, dword [esi + 4]
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4c28a7
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
test edi, edi
jne 0x4c2aa3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0xaa
movzx esi, ax
lea eax, [ebp - 0xbc]
push edi
push eax
call fcn.0055c530
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0xbc]
add esp, 0xc
push 0x55
push eax
push 0x59
push esi
call edi
test eax, eax
je 0x4c29a4
push 0x5bcdd0
lea eax, [ebp - 0xbc]
push 0x55
push eax
call fcn.0056b327
lea ecx, [ebp - 0xbc]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x4c2910
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2910
sub ecx, edx
lea eax, [ebp - 0xbc]
sar ecx, 1
push 0x55
lea eax, [eax + ecx*2]
push eax
push 0x5a
push esi
call edi
test eax, eax
je 0x4c29a4
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4c2b01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4c2976
movzx eax, ax
lea ecx, [ebp - 0xc0]
push eax
call fcn.00429d30
jmp 0x4c29c8
lea ecx, [ebp - 0xbc]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2980
sub ecx, edx
lea eax, [ebp - 0xbc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.0042a000
jmp 0x4c29c8
mov dword [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4c2b0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.004c4260
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.00429660
lea eax, [ebp - 0xc0]
mov ecx, ebx
push eax
call fcn.004c2670
lea ecx, [ebp - 0xc0]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
call fcn.00429660
test esi, esi
jne 0x4c2aa3
lea eax, [ebp - 0xc0]
mov ecx, ebx
push eax
call fcn.004c2670
lea ecx, [ebp - 0xc0]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
call fcn.00429660
test esi, esi
jne 0x4c2ae1
mov edi, dword [ebx + 0x1c]
mov ecx, dword [edi]
mov eax, ecx
cmp ecx, edi
je 0x4c2a98
jmp 0x4c2a50
mov ecx, dword [eax + 8]
mov edx, str.en_US
mov si, word [ecx]
cmp si, word [edx]
jne 0x4c2a7e
test si, si
je 0x4c2a7a
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4c2a7e
add ecx, 4
add edx, 4
test si, si
jne 0x4c2a58
xor ecx, ecx
jmp 0x4c2a83
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4c2aaa
mov ecx, dword [eax]
mov eax, ecx
cmp ecx, edi
jne 0x4c2a50
mov ecx, dword [edi]
lea eax, [ecx + 8]
mov ecx, ebx
push eax
call fcn.004c4260
mov eax, 1
jmp 0x4c2ae3
push str.en_US
lea ecx, [ebp - 0xc0]
call fcn.00444a50
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.004c4260
lea ecx, [ebp - 0xc0]
call fcn.00429660
mov eax, 1
jmp 0x4c2ae3
xor eax, eax
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.00557e89
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3