Function at 0x4dc5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5e11b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.00495350
mov esi, dword [esp + 0x5c]
xor ebx, ebx
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x10], ebx
jne 0x4dc67e
call fcn.005c006c
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x58]
and ecx, 0xffff
push 0x663660
mov edx, dword [eax + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4dc62e
call fcn.005c006c
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
jne 0x4dc65b
push ebx
push ebx
push ebx
push str.Could_not_get_the_envelope_executable_resource.
push str.XNOENVELOPE
call fcn.004942c0
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004953f0
xor eax, eax
jmp 0x4dc92f
call fcn.005c006c
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
jmp 0x4dc7f5
mov edx, dword [0x677e28]
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 1
call fcn.004018c0
mov ebp, 0x5ecdf8
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push eax
push esi
mov byte [esp + 0x54], 2
call fcn.00491a70
test eax, eax
jne 0x4dc6d5
push ebx
push ebx
push esi
push 0x662fcc
call fcn.004942a0
add esp, 0x10
mov dword [esp + 0x14], ebp
mov byte [esp + 0x4c], 3
jmp 0x4dc892
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.0059d986
lea ecx, [esp + 0x24]
call fcn.0059ddc8
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
push 0x20
push eax
call fcn.004954d0
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4dc749
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
call fcn.0059dddc
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.00494b30
mov dword [esp + 0x14], ebp
mov byte [esp + 0x4c], 4
jmp 0x4dc892
lea ecx, [esp + 0x24]
call fcn.0059dddc
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x58]
push edx
mov ebp, eax
push eax
mov eax, dword [esp + 0x30]
push edi
push eax
mov dword [esp + 0x68], ebx
call fcn.00495570
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x4dc87b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ecx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], eax
call fcn.00494b30
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, 0xffffffff
je 0x4dc7ab
push eax
call fcn.00495550
add esp, 4
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], 0xffffffff
je 0x4dc7d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x24]
push ebx
push ebx
push edx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], eax
call fcn.00494b30
mov dword [esp + 0x14], 0x5ecdf8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 6
call fcn.0059d7fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], bl
call fcn.0059d7fd
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x24]
push eax
call fcn.0059d986
lea ecx, [esp + 0x24]
call fcn.0059ddc8
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push ebx
push edx
call fcn.00495480
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4dc852
mov eax, dword [esp + 0x28]
push eax
call fcn.00495550
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4dc852
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push 0x12
push edx
call fcn.004954d0
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4dc8aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
call fcn.0059dddc
mov eax, dword [esp + 0x24]
push ebx
push ebx
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.00494b30
jmp 0x4dc901
cmp dword [esp + 0x58], ebx
jne 0x4dc795
mov dword [esp + 0x14], 0x5ecdf8
mov byte [esp + 0x4c], 5
lea ecx, [esp + 0x1c]
call fcn.0059d7fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], bl
call fcn.0059d7fd
jmp 0x4dc901
lea ecx, [esp + 0x24]
call fcn.0059dddc
push ebp
push edi
lea ecx, [esp + 0x28]
call fcn.00445950
test eax, eax
je 0x4dc901
mov ecx, dword [esp + 0x28]
push 1
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
and eax, 7
je 0x4dc8f0
mov edx, 8
lea ecx, [esp + 0x20]
sub edx, eax
push edx
push str.XXXXXXX
call fcn.00445950
test eax, eax
je 0x4dc901
lea ecx, [esp + 0x20]
call fcn.00445a40
mov dword [esp + 0x10], 1
cmp dword [esp + 0x5c], ebx
je 0x4dc91a
cmp edi, ebx
je 0x4dc91a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004953f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc