Function at 0x6d7b4bdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x40
mov eax, 0x6d7e11ce
call fcn.6d7b88e4
movzx edi, word [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_FindResourceW]
push pe_nt_image_headers32
push edi
push dword [0x6d7f7218]
mov dword [ebp - 0x3c], ecx
call esi
and dword [ebp - 0x44], 0
and dword [ebp - 0x24], 0
mov ebx, dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x6d7b4c2b
push eax
push dword [0x6d7f7218]
call ebx
test eax, eax
je 0x6d7b4c2b
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x44], eax
push 5
push edi
push dword [0x6d7f7218]
call esi
test eax, eax
je 0x6d7b4f08
push eax
push dword [0x6d7f7218]
call ebx
test eax, eax
je 0x6d7b4f00
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x6d7b4f00
xor ecx, ecx
mov eax, 0xffff
cmp word [esi + 2], ax
push esi
sete cl
mov dword [ebp - 0x28], ecx
call fcn.6d7a79bb
movzx edi, word [eax]
push esi
mov dword [ebp - 0x4c], edi
call fcn.6d7a79d2
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x3c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
xor eax, eax
cmp ax, di
jae 0x6d7b4f08
cmp dword [ebp - 0x28], 0
je 0x6d7b4cb2
mov edi, dword [esi + 0x14]
jmp 0x6d7b4cb6
movzx edi, word [esi + 0x10]
push dword [ebp - 0x28]
push esi
call fcn.6d7b2c88
pop ecx
pop ecx
test al, al
je 0x6d7b4e93
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x44]
push edi
call fcn.6d7b2c4b
xor edi, edi
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x6d7b4d31
push ebx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x6d7b4edb
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x6d7b4ec8
push ebx
push dword [ebp - 0x2c]
push ebx
push eax
call fcn.6d7a4066
add esp, 0x10
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
lea eax, [ebp - 0x30]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor edi, edi
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.6d7a8f22
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
jl 0x6d7b4e77
mov dword [ebp - 0x24], edi
call fcn.6d7bc5e3
mov ebx, dword [ebp - 0x28]
lea eax, [esi + 0x18]
cmp ebx, edi
jne 0x6d7b4d66
lea eax, [esi + 0x12]
mov dword [ebp - 0x40], eax
cmp ebx, edi
je 0x6d7b4d73
movzx eax, word [esi + 0xc]
jmp 0x6d7b4d77
movzx eax, word [esi + 8]
movsx edx, ax
mov dword [ebp - 0x20], edx
cmp ebx, edi
je 0x6d7b4d87
movzx eax, word [esi + 0xe]
jmp 0x6d7b4d8b
movzx eax, word [esi + 0xa]
movsx ecx, ax
mov dword [ebp - 0x1c], ecx
cmp ebx, edi
je 0x6d7b4d9b
movzx eax, word [esi + 0x10]
jmp 0x6d7b4d9f
movzx eax, word [esi + 0xc]
cwde
add eax, edx
mov dword [ebp - 0x18], eax
cmp ebx, edi
je 0x6d7b4daf
movzx eax, word [esi + 0x12]
jmp 0x6d7b4db3
movzx eax, word [esi + 0xe]
mov ebx, dword [ebp - 0x3c]
cwde
add eax, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
cmp dword [ebp - 0x28], edi
je 0x6d7b4dd3
mov eax, dword [esi + 0x14]
jmp 0x6d7b4dd7
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x28], edi
je 0x6d7b4de4
mov edx, dword [esi + 4]
jmp 0x6d7b4de6
xor edx, edx
cmp dword [ebp - 0x28], edi
je 0x6d7b4df0
mov eax, dword [esi + 8]
jmp 0x6d7b4df2
mov eax, dword [esi]
mov ecx, dword [ebx + 4]
push edi
push dword [ebp - 0x48]
or eax, 0x10000
push edx
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push ecx
push str.AtlAxWinLic100
lea ecx, [ebp - 0x24]
call fcn.6d7bc5e3
mov ebx, dword [ebp - 0x24]
cmp ebx, edi
je 0x6d7b4e6f
cmp dword [ebp - 0x28], edi
je 0x6d7b4e2d
mov eax, dword [esi]
cmp eax, edi
je 0x6d7b4e2d
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push edi
push 0x6d7e89e0
push edi
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x40]
call fcn.6d7b31e1
mov dword [ebp - 0x24], eax
cmp eax, edi
jl 0x6d7b4ee4
cmp word [ebp - 0x38], di
jne 0x6d7b4e5a
mov dword [ebp - 0x34], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x34], ebx
jmp 0x6d7b4e77
call fcn.6d7a40b1
mov dword [ebp - 0x24], eax
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x6d7b4ea8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x6d7b4ea8
cmp word [ebp - 0x38], 0
je 0x6d7b4ea8
push 2
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x28]
push esi
call fcn.6d7a7a55
inc dword [ebp - 0x38]
mov esi, eax
mov ax, word [ebp - 0x38]
pop ecx
pop ecx
cmp ax, word [ebp - 0x4c]
jb 0x6d7b4ca7
jmp 0x6d7b4f08
call fcn.6d7a40b1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
test eax, eax
jmp 0x6d7b4ef6
mov dword [ebp - 0x24], 0x8007000e
jmp 0x6d7b4ed0
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x6d7b4f08
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x6d7b4f08
call fcn.6d7a40b1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.6d7b8967
ret 4