Function at 0x4c81a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ee30
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x556620]
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 - 0x40], ecx
mov eax, dword [ebp + 8]
movzx eax, ax
push 0xf0
push eax
push dword [0x55cf1c]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], 0
test eax, eax
je 0x4c8215
push eax
push dword [0x55cf1c]
call edi
test eax, eax
je 0x4c8215
push eax
call esi
mov dword [ebp - 0x44], eax
push 5
push dword [ebp - 0x34]
push dword [0x55cf1c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c8542
push eax
push dword [0x55cf1c]
call edi
test eax, eax
je 0x4c853b
push eax
call esi
mov edx, eax
test edx, edx
je 0x4c853b
movzx ecx, word [edx + 2]
xor eax, eax
mov esi, 0xffff
cmp cx, si
sete al
mov dword [ebp - 0x3c], eax
lea eax, [edx + 0x10]
cmp cx, si
je 0x4c826b
lea eax, [edx + 8]
movzx esi, word [eax]
push edx
mov dword [ebp - 0x48], esi
call fcn.004cadf0
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x40]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov edx, eax
mov dword [ebp - 0x38], ebx
xor eax, eax
mov dword [ebp - 0x30], edx
cmp ax, si
jae 0x4c8542
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x4c82ac
mov ecx, dword [edi + 0x14]
lea eax, [edi + 0x18]
jmp 0x4c82b3
movzx ecx, word [edi + 0x10]
lea eax, [edi + 0x12]
cmp word [eax], 0x7b
jne 0x4c84cd
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x44]
push ecx
call fcn.004cada0
xor ecx, ecx
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x4c832f
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4c84ff
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4c84e2
push ebx
push dword [ebp - 0x2c]
push ebx
push eax
call fcn.0041e67e
push eax
call fcn.004541f0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push ecx
call fcn.004ce0f0
mov esi, dword [ebp - 0x2c]
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x4c848a
call fcn.004d1a90
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4c836c
movzx eax, word [edi + 0xc]
lea edx, [edi + 0x18]
mov dword [ebp - 0x34], edx
jmp 0x4c8376
lea eax, [edi + 0x12]
mov dword [ebp - 0x34], eax
movzx eax, word [edi + 8]
movsx ecx, ax
mov dword [ebp - 0x24], ecx
test ebx, ebx
je 0x4c8386
movzx eax, word [edi + 0xe]
jmp 0x4c838a
movzx eax, word [edi + 0xa]
movsx edx, ax
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x4c839a
movzx eax, word [edi + 0x10]
jmp 0x4c839e
movzx eax, word [edi + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x4c83ae
movzx eax, word [edi + 0x12]
jmp 0x4c83b2
movzx eax, word [edi + 0xe]
cwde
add eax, edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test ebx, ebx
je 0x4c83da
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 8]
jmp 0x4c83e7
movzx ecx, word [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x20]
or eax, 0x10000
push 0
push dword [0x55cf18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x24]
push dword [eax + 4]
mov eax, dword [ebp - 0x18]
sub eax, edx
push eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x4c]
push 0
push str.AtlAxWinLic120
push dword [ebp - 0x28]
call fcn.00414370
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4c8483
test ebx, ebx
je 0x4c843d
mov ecx, dword [edi]
test ecx, ecx
je 0x4c843d
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push esi
push 0
push 0x514550
push 0
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x34]
call fcn.004c8670
mov ebx, eax
test ebx, ebx
js 0x4c851a
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp word [ebp - 0x38], cx
push 0x13
push ecx
push ecx
push ecx
cmove eax, ecx
push ecx
push eax
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4c848a
call fcn.00454290
mov ebx, eax
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c84a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x3c]
push esi
push edi
call fcn.004cae80
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp ax, word [ebp - 0x48]
jae 0x4c8542
mov edx, dword [ebp - 0x30]
jmp 0x4c82a0
cmp word [ebp - 0x38], 0
je 0x4c84ac
push 2
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x30], eax
jmp 0x4c84ac
call fcn.00454290
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c8542
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4c8542
mov eax, dword [ebp - 0x14]
mov ebx, 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c8542
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4c8542
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c8542
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4c8542
call fcn.00454290
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.00401580
mov esp, ebp
pop ebp
ret 4