Function at 0x6d8fb170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x6d90dc8c]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov edx, dword [ebp + 0x3b0]
mov eax, dword [ebp + 0x3ac]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x68], edx
mov edx, dword [ebp + 0x3b4]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x64], edi
test eax, eax
je 0x6d8fb256
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
cdq
mov esi, eax
shld edx, esi, 1
add esi, esi
mov eax, esi
add eax, 0x80000000
adc edx, edi
mov dword [ebp - 0x7c], edx
jne 0x6d8fb250
cmp eax, 0xffffffff
ja 0x6d8fb250
cmp esi, 0x400
jg 0x6d8fb200
push esi
call fcn.6d900540
add esp, 4
test al, al
je 0x6d8fb200
mov eax, esi
call fcn.6d8fd3e0
mov ebx, esp
jmp 0x6d8fb221
or eax, 0xffffffff
sub eax, esi
cmp eax, 8
jb 0x6d8fb246
lea eax, [esi + 8]
push eax
call fcn.6d900540
add esp, 4
test eax, eax
je 0x6d8fb250
mov dword [eax], edi
mov edi, eax
lea ebx, [eax + 8]
test ebx, ebx
je 0x6d8fb250
mov ecx, dword [ebp - 0x70]
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x6d8fb252
push 0x80070216
call fcn.6d8f1000
xor eax, eax
test eax, eax
jne 0x6d8fb289
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x64], edx
je 0x6d8fb266
lea ecx, [ebp - 0x64]
call fcn.6d8f3290
test edi, edi
je 0x6d8fb27f
lea ebx, [ebx]
push edi
mov edi, dword [edi]
call fcn.6d900540
add esp, 4
test edi, edi
jne 0x6d8fb270
mov eax, 0x8007000e
jmp 0x6d8fb361
push 2
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x6d8fb2a6
call fcn.6d8f2780
mov esi, eax
jmp 0x6d8fb339
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
push eax
push ecx
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x6d8fb2c2
call fcn.6d8f2780
jmp 0x6d8fb330
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x6d8fb2d8
call fcn.6d8f2780
jmp 0x6d8fb330
push esi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x6d8fb2f0
mov esi, 0x8007000e
jmp 0x6d8fb332
push eax
lea ecx, [ebp - 0x64]
call fcn.6d8f49c0
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x6d8fb307
mov esi, 0x8007000e
jmp 0x6d8fb332
mov edx, dword [ebp - 0x68]
push esi
push edx
push esi
push eax
call fcn.6d8f23b0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp + 0x3b8]
add esp, 0x10
mov byte [eax + esi], 0
mov edx, dword [ebp - 0x64]
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.6d8f5900
mov esi, eax
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x6d8fb349
lea ecx, [ebp - 0x64]
call fcn.6d8f3290
test edi, edi
je 0x6d8fb35f
lea ecx, [ecx]
push edi
mov edi, dword [edi]
call fcn.6d900540
add esp, 4
test edi, edi
jne 0x6d8fb350
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.6d8fca24
lea esp, [ebp + 0x3a4]
pop ebp
ret 0x10