Function at 0x4e0580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a710
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x579630]
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 [0x581038]
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 0x4e05f5
push eax
push dword [0x581038]
call edi
test eax, eax
je 0x4e05f5
push eax
call esi
mov dword [ebp - 0x44], eax
push 5
push dword [ebp - 0x34]
push dword [0x581038]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e0922
push eax
push dword [0x581038]
call edi
test eax, eax
je 0x4e091b
push eax
call esi
mov edx, eax
test edx, edx
je 0x4e091b
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 0x4e064b
lea eax, [edx + 8]
movzx esi, word [eax]
push edx
mov dword [ebp - 0x48], esi
call fcn.004e3050
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 0x4e0922
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x4e068c
mov ecx, dword [edi + 0x14]
lea eax, [edi + 0x18]
jmp 0x4e0693
movzx ecx, word [edi + 0x10]
lea eax, [edi + 0x12]
cmp word [eax], 0x7b
jne 0x4e08ad
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x44]
push ecx
call fcn.004e3000
xor ecx, ecx
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x4e070f
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4e08df
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4e08c2
push ebx
push dword [ebp - 0x2c]
push ebx
push eax
call fcn.004241e2
push eax
call fcn.0045f000
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.004e6390
mov esi, dword [ebp - 0x2c]
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x4e086a
call fcn.004e9830
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4e074c
movzx eax, word [edi + 0xc]
lea edx, [edi + 0x18]
mov dword [ebp - 0x34], edx
jmp 0x4e0756
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 0x4e0766
movzx eax, word [edi + 0xe]
jmp 0x4e076a
movzx eax, word [edi + 0xa]
movsx edx, ax
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x4e077a
movzx eax, word [edi + 0x10]
jmp 0x4e077e
movzx eax, word [edi + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x4e078e
movzx eax, word [edi + 0x12]
jmp 0x4e0792
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 0x4e07ba
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 8]
jmp 0x4e07c7
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 [0x581034]
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.00413d60
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4e0863
test ebx, ebx
je 0x4e081d
mov ecx, dword [edi]
test ecx, ecx
je 0x4e081d
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push esi
push 0
push 0x531080
push 0
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x34]
call fcn.004e0a50
mov ebx, eax
test ebx, ebx
js 0x4e08fa
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 0x4e086a
call fcn.0045f0a0
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 0x4e0889
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x3c]
push esi
push edi
call fcn.004e30e0
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp ax, word [ebp - 0x48]
jae 0x4e0922
mov edx, dword [ebp - 0x30]
jmp 0x4e0680
cmp word [ebp - 0x38], 0
je 0x4e088c
push 2
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x30], eax
jmp 0x4e088c
call fcn.0045f0a0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e0922
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4e0922
mov eax, dword [ebp - 0x14]
mov ebx, 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4e0922
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4e0922
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 0x4e0922
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4e0922
call fcn.0045f0a0
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.00401590
mov esp, ebp
pop ebp
ret 4