Function at 0x6d1b7b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x6d1d54cc]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov edx, dword [ebp + 0x3b0]
mov eax, dword [ebp + 0x3ac]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x68], edx
mov edx, dword [ebp + 0x3b4]
push edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x64], esi
test eax, eax
je 0x6d1b7c37
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
cdq
mov edi, eax
shld edx, edi, 1
add edi, edi
mov eax, edi
add eax, 0x80000000
adc edx, esi
mov dword [ebp - 0x7c], edx
jne 0x6d1b7c31
cmp eax, 0xffffffff
ja 0x6d1b7c31
cmp edi, 0x400
jg 0x6d1b7be0
push edi
call fcn.6d1c8ef8
add esp, 4
test al, al
je 0x6d1b7be0
mov eax, edi
call fcn.6d1c9410
mov ebx, esp
jmp 0x6d1b7c02
or eax, 0xffffffff
sub eax, edi
cmp eax, 8
jb 0x6d1b7c27
lea eax, [edi + 8]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
test eax, eax
je 0x6d1b7c31
mov dword [eax], esi
mov esi, eax
lea ebx, [eax + 8]
test ebx, ebx
je 0x6d1b7c31
mov ecx, dword [ebp - 0x70]
push 0
push 0
push edi
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 0x6d1b7c33
push 0x80070216
call fcn.6d1b1d60
xor eax, eax
test eax, eax
jne 0x6d1b7c67
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x64], edx
je 0x6d1b7c47
lea ecx, [ebp - 0x64]
call fcn.6d1b6500
test esi, esi
je 0x6d1b7c5d
mov edi, dword [sym.imp.MSVCR100.dll_free]
push esi
mov esi, dword [esi]
call edi
add esp, 4
test esi, esi
jne 0x6d1b7c51
mov eax, 0x8007000e
jmp 0x6d1b7d3f
push 2
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x6d1b7c84
call fcn.6d1b5e40
mov edi, eax
jmp 0x6d1b7d17
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
push eax
push ecx
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x6d1b7ca0
call fcn.6d1b5e40
jmp 0x6d1b7d0e
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x6d1b7cb6
call fcn.6d1b5e40
jmp 0x6d1b7d0e
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x6d1b7cce
mov edi, 0x8007000e
jmp 0x6d1b7d10
push eax
lea ecx, [ebp - 0x64]
call fcn.6d1b6d40
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x6d1b7ce5
mov edi, 0x8007000e
jmp 0x6d1b7d10
mov edx, dword [ebp - 0x68]
push edi
push edx
push edi
push eax
call fcn.6d1b5cc0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp + 0x3b8]
add esp, 0x10
mov byte [eax + edi], 0
mov edx, dword [ebp - 0x64]
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.6d1b79c0
mov edi, eax
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x6d1b7d27
lea ecx, [ebp - 0x64]
call fcn.6d1b6500
test esi, esi
je 0x6d1b7d3d
mov ebx, dword [sym.imp.MSVCR100.dll_free]
push esi
mov esi, dword [esi]
call ebx
add esp, 4
test esi, esi
jne 0x6d1b7d31
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.6d1c932c
lea esp, [ebp + 0x3a4]
pop ebp
ret 0x10