Function at 0x442840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6016ad
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6a3000]
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 esi, dword [ebp + 0xc]
call fcn.004a4868
mov ebx, dword [ebp + 8]
push 0x670038
mov ecx, dword [eax + 8]
movzx eax, bx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4428c6
mov dword [ebp - 4], 1
call fcn.00483151
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x442a95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
mov dword [ebp - 4], 2
push str.Failed_to_find_resource_with_id:__d
jmp 0x442a40
call fcn.004a4868
push edi
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x442911
mov dword [ebp - 4], 4
call fcn.00483151
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x442a95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
mov dword [ebp - 4], 5
push str.Failed_to_load_resource_with_id:__d
jmp 0x442a40
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
call fcn.004a4868
push edi
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, esi
mov edi, eax
call fcn.00471670
test edi, edi
je 0x4429e0
test ebx, ebx
je 0x4429e0
cmp byte [ebx], 0
je 0x4429e0
cmp edi, 0xffffffff
jne 0x44295f
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x442956
sub edi, ecx
lea eax, [edi + 1]
push eax
call fcn.004a44ac
push edi
push ebx
push eax
mov dword [esi + 0x50], eax
call fcn.005cfab0
mov eax, dword [esi + 0x50]
add esp, 0x10
mov ecx, esi
mov byte [edi + eax], 0
call fcn.004718b0
cmp dword [esi + 0x38], 0
je 0x442a75
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4429a4
push eax
mov ecx, esi
call fcn.0046ffb0
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x442995
lea ecx, [esi + 0x90]
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
call fcn.00471f60
lea ecx, [esi + 0xdc]
call fcn.00471f60
lea ecx, [esi + 0x128]
call fcn.00471d40
lea ecx, [esi + 0x174]
call fcn.00471b30
jmp 0x4429ef
push 0
push 0
push 0xd
push esi
call fcn.00471750
add esp, 0x10
cmp dword [esi + 0x38], 0
je 0x442a75
mov eax, dword [esi + 0x44]
lea ecx, [esi + 0x40]
cmp eax, dword [esi + 0x48]
jne 0x442a0b
mov esi, 0x66b44d
jmp 0x442a12
call fcn.0046f720
mov esi, eax
mov dword [ebp - 4], 7
call fcn.00483151
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x442a95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 4], 8
push str.Failed_to_parse_language_xml_file__error_code:__S
lea eax, [ebp - 0x14]
push eax
call fcn.00412ed0
mov esi, dword [ebp - 0x14]
add esp, 0xc
push 0
push 0
push esi
call fcn.00483f82
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x442a71
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x442a77
mov al, 1
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.005ca888
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040c5c0
int3