Function at 0x4dd2e0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a078e
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x648], edi
mov dword [ebp - 0x628], edi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x64c], edi
xorps xmm0, xmm0
mov dword [edi], 0
movups xmmword [edi + 0xc], xmm0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], cx
mov dword [ebp - 0x620], eax
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
push 0x100
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x212]
push ecx
push 0x100
lea ecx, [ebp - 0x412]
push ecx
push 0x100
lea ecx, [ebp - 0x612]
push ecx
push 3
lea ecx, [ebp - 0x618]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x412]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x624], eax
test eax, eax
je 0x4dd5b8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4dd5b8
push dword [ebp - 0x624]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x638], eax
cmp eax, 8
jb 0x4dd5b8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [ebp - 0x638]
push 0x8000
mov dword [edi], eax
lea eax, [ebp - 0x630]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pipe]
push esi
push dword [edi]
push dword [ebp - 0x62c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
lea eax, [ebp - 0x61c]
push 4
push eax
push dword [ebp - 0x630]
call esi
push 4
lea eax, [ebp - 0x634]
push eax
push dword [ebp - 0x630]
call esi
mov ecx, dword [ebp - 0x634]
add esp, 0x30
lea eax, [ecx + 8]
cmp dword [ebp - 0x638], eax
jae 0x4dd46e
push dword [ebp - 0x630]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov dword [edi], 0
call esi
push dword [ebp - 0x62c]
call esi
add esp, 8
jmp 0x4dd5b8
push ecx
push ecx
lea ecx, [ebp - 0x644]
call fcn.00408350
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x644]
sub eax, ecx
je 0x4dd5d7
push dword [ebp - 0x634]
push ecx
push dword [ebp - 0x630]
call esi
mov eax, dword [ebp - 0x61c]
lea ecx, [edi + 0xc]
add esp, 0xc
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x634]
mov dword [edi + 8], eax
push dword [ebp - 0x620]
call fcn.004036e0
push dword [ebp - 0x61c]
lea ecx, [edi + 0x24]
mov dword [ebp - 0x628], ecx
call fcn.00408210
xor edx, edx
mov dword [ebp - 0x620], edx
mov dword [ebp - 0x624], edx
cmp dword [ebp - 0x61c], edx
jle 0x4dd58b
mov edi, dword [ebp - 0x628]
xor esi, esi
mov ecx, dword [edi]
nop dword [eax]
mov eax, dword [ebp - 0x644]
mov eax, dword [eax + edx]
mov dword [esi + ecx + 0x18], eax
mov ecx, dword [edi]
mov eax, dword [ebp - 0x644]
mov eax, dword [eax + edx + 4]
mov dword [esi + ecx + 0x1c], eax
mov eax, dword [ebp - 0x644]
add eax, 8
add edx, eax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x628], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dd533
sub eax, dword [ebp - 0x628]
mov ecx, dword [edi]
sar eax, 1
add ecx, esi
push eax
push edx
call fcn.004039f0
mov ecx, dword [edi]
mov edx, dword [ebp - 0x620]
mov eax, dword [esi + ecx + 0x10]
add esi, 0x20
lea edx, [edx + eax*2]
mov eax, dword [ebp - 0x624]
inc eax
add edx, 0xa
mov dword [ebp - 0x620], edx
mov dword [ebp - 0x624], eax
cmp eax, dword [ebp - 0x61c]
jl 0x4dd500
mov edi, dword [ebp - 0x648]
mov eax, dword [ebp - 0x638]
push dword [ebp - 0x630]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov dword [edi + 0x30], eax
call esi
push dword [ebp - 0x62c]
call esi
add esp, 8
lea ecx, [ebp - 0x644]
call fcn.00408300
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052d3c5
mov esp, ebp
pop ebp
ret 4
call fcn.004083d0
int3