Function at 0x4cfe80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x721305
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x7db1e8]
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 dword [ebp - 0x34], ecx
movzx eax, word [ebp + 8]
push 0xf0
push eax
push dword [0x7f44f0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
mov dword [ebp - 0x44], ecx
test eax, eax
je 0x4cfeee
push eax
push dword [0x7f44f0]
call edi
test eax, eax
je 0x4cfeee
push eax
call esi
mov dword [ebp - 0x44], eax
movzx ecx, word [ebp + 8]
push 5
push ecx
push dword [0x7f44f0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4d02d2
push eax
push dword [0x7f44f0]
call edi
test eax, eax
je 0x4d02cb
push eax
call esi
mov edx, eax
test edx, edx
je 0x4d02cb
movzx ecx, word [edx + 2]
mov esi, 0xffff
mov eax, ecx
mov dword [ebp - 0x40], eax
movzx eax, ax
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp cx, si
push edx
sete al
mov dword [ebp - 0x54], eax
xor eax, eax
cmp cx, si
sete al
lea eax, [eax*8 + 8]
movzx eax, word [eax + edx]
mov dword [ebp - 0x48], eax
call fcn.004d2100
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], ecx
cmp ax, word [ebp - 0x48]
jae 0x4d02d2
nop
mov edx, 0xffff
cmp word [ebp - 0x40], dx
jne 0x4cffa6
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x3c]
jmp 0x4cffad
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x28], eax
cmp word [ebp - 0x4c], dx
mov eax, 0x18
mov edx, 0x12
cmovne eax, edx
cmp word [eax + esi], 0x7b
jne 0x4d024e
mov ecx, dword [ebp - 0x44]
mov eax, ecx
test ecx, ecx
je 0x4cffed
mov ebx, dword [ebp - 0x28]
movzx ecx, word [eax]
lea edi, [eax + 2]
movzx esi, word [eax + 2]
mov edx, dword [eax + 4]
add eax, 8
cmp ecx, ebx
je 0x4d0036
add eax, edx
jne 0x4cffd5
xor esi, esi
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
test esi, esi
je 0x4d0091
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4d0293
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d0276
push esi
test ebx, ebx
je 0x4d0047
push ebx
push eax
call fcn.006f6ff0
add esp, 0xc
xor eax, eax
jmp 0x4d0067
mov eax, 0x378
cmp si, ax
je 0x4cffed
mov ebx, edi
lea esi, [edx + 6]
jmp 0x4cfff1
push 0
push eax
call fcn.006f7570
add esp, 0xc
call fcn.006fba38
mov dword [eax], 0x16
call fcn.006fb95e
mov eax, 0x16
push eax
call fcn.004ced80
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
mov eax, dword [ebp - 0x24]
test ebx, ebx
js 0x4d0263
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.004d54e0
mov edi, dword [ebp - 0x30]
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x4d0206
call fcn.004dbd40
mov ecx, dword [ebp - 0x40]
mov edx, 0xffff
mov ebx, dword [ebp - 0x38]
cmp cx, dx
mov eax, 0x18
mov esi, 0x12
cmovne eax, esi
add eax, ebx
mov dword [ebp - 0x50], eax
cmp cx, dx
jne 0x4d0124
movzx eax, word [ebx + 0xc]
movsx ecx, ax
movzx eax, word [ebx + 0xe]
movsx edx, ax
movsx eax, word [ebx + 0x10]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
movsx eax, word [ebx + 0x12]
add eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [ebx + 4]
lea esi, [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], ecx
jmp 0x4d0167
movzx eax, word [ebx + 8]
movsx ecx, ax
movzx eax, word [ebx + 0xa]
movsx edx, ax
movsx eax, word [ebx + 0xc]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
movsx eax, word [ebx + 0xe]
add eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
movzx eax, word [ebx + 0x10]
mov esi, ebx
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push 0
push dword [0x7f44ec]
mov esi, dword [esi]
push eax
mov eax, dword [ebp - 0x34]
or esi, 0x10000
push dword [eax + 4]
mov eax, dword [ebp - 0x14]
sub eax, edx
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push esi
push 0
push 0x738814
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4d01ff
mov eax, 0xffff
cmp word [ebp - 0x40], ax
jne 0x4d01c5
mov eax, dword [ebx]
test eax, eax
je 0x4d01c5
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push edi
push 0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x50]
call fcn.004d0380
mov ebx, eax
test ebx, ebx
js 0x4d02ae
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp word [ebp - 0x3c], cx
push 0x13
push ecx
push ecx
push ecx
push ecx
cmove eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x2c], esi
jmp 0x4d0206
call fcn.004cee20
mov ebx, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d0221
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x54]
push esi
call fcn.004d21a0
mov ecx, dword [ebp - 0x3c]
add esp, 8
inc ecx
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ecx
cmp cx, word [ebp - 0x48]
jb 0x4cff90
jmp 0x4d02d2
test cx, cx
je 0x4d0227
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x2c], edi
jmp 0x4d0227
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d02d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4d02d2
call fcn.004cee20
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4d02d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4d02d2
mov eax, dword [ebp - 0x24]
mov ebx, 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d02d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4d02d2
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d02d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4d02d2
call fcn.004cee20
mov ebx, eax
mov eax, ebx
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.006f4db8
mov esp, ebp
pop ebp
ret 4