Function at 0x1d15f61
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push connect
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1d15f94
xor eax, eax
jmp 0x1d1619a
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [ebp - 0x1c], 0
mov ebx, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1d16184
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x1d16184
lea edx, [eax + ebx]
cmp dword [edx], 0x4550
mov dword [ebp - 0x14], edx
jne 0x1d16184
and dword [ebp - 0xc], 0
push 0x38
lea esi, [edx + 0x18]
pop ecx
lea edi, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xfc]
mov ebx, dword [ebp - 0xf4]
mov esi, dword [ebp + 0x18]
lea ecx, [eax + ebx]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x10c]
add ecx, eax
mov eax, dword [ebp + 0x1c]
add ecx, ebx
mov dword [eax], ecx
movzx ecx, word [edx + 0x14]
mov eax, dword [ebp - 0xb0]
lea ecx, [ecx + edx + 0x18]
movzx edx, word [edx + 6]
add eax, ebx
mov dword [ebp - 4], edx
test edx, edx
je 0x1d16184
lea edx, [ecx + 0xc]
mov dword [ebp - 0x2c], edx
mov esi, dword [edx]
mov ecx, dword [edx + 8]
lea edi, [esi + ebx]
mov dword [ebp - 8], edi
cmp edi, eax
ja 0x1d1606d
mov edi, dword [edx - 4]
add edi, esi
add edi, ebx
cmp edi, eax
jae 0x1d16080
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
add edx, 0x28
cmp ecx, dword [ebp - 4]
jb 0x1d16053
jmp 0x1d16184
sub ecx, dword [ebp - 8]
add ecx, eax
sub eax, ebx
mov edi, eax
mov eax, dword [ebp - 0x10]
add eax, ecx
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0x20]
sub esi, edi
sub ecx, edi
sub edx, edi
add esi, eax
add ecx, eax
add edx, eax
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], edi
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], edi
test eax, eax
je 0x1d16184
movzx eax, word [edx + edi*2]
mov edi, dword [ecx + edi*4]
sub edi, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
add edi, dword [ebp - 0x28]
add edi, dword [ebp - 0x10]
je 0x1d16184
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edi, dword [ebp - 4]
cmp al, byte [edi]
jne 0x1d16109
test al, al
je 0x1d16105
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
cmp al, byte [edi + 1]
jne 0x1d16109
add dword [ebp - 8], 2
add dword [ebp - 4], 2
test al, al
jne 0x1d160de
xor eax, eax
jmp 0x1d1610e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1d16120
mov edi, dword [ebp - 0xc]
inc edi
mov dword [ebp - 0xc], edi
cmp edi, dword [ebp - 0x20]
jb 0x1d160bc
jmp 0x1d16184
movzx eax, word [ebp - 0x24]
mov esi, dword [esi + eax*4]
mov eax, dword [ebp + 0x20]
add esi, ebx
mov dword [eax], esi
je 0x1d16184
mov ecx, dword [ebp - 0x14]
and dword [ebp - 4], 0
xor eax, eax
cmp ax, word [ecx + 6]
jae 0x1d16184
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
lea ecx, [eax + ebx]
cmp ecx, esi
ja 0x1d16172
mov edx, dword [edi - 4]
add edx, eax
add edx, ebx
cmp edx, esi
jb 0x1d16172
mov eax, dword [edi + 8]
push dword [ebp + 0x14]
sub eax, ecx
add eax, esi
add eax, dword [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jb 0x1d16142
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
pop ebx
pop edi
pop esi
leave
ret