Function at 0x10038b60
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
cmp dword [0x101d0704], 0xffffb82b
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov bh, bh
cmp dword [ebp + 0xc], 0x40
jae 0x10038b86
xor eax, eax
jmp 0x10038e82
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10038b9b
xor eax, eax
jmp 0x10038e82
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
cmp dword [ebp + 0xc], ecx
jge 0x10038bb3
xor eax, eax
jmp 0x10038e82
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ah, ah
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x10038bd3
xor eax, eax
jmp 0x10038e82
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x16]
and eax, 0x2000
jne 0x10038bfc
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x16]
and edx, 2
je 0x10038bfc
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x14]
cmp ecx, 0xe0
je 0x10038c03
xor eax, eax
jmp 0x10038e82
mov edx, dword [ebp - 0xc]
add edx, 0xf8
mov dword [ebp - 0x10], edx
cmp dword [0x101d0710], 0x41ab
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.100389d0
add esp, 0x10
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
cmp dword [0x101d0710], 0x41ab
mov edx, dword [ebp + 0x1c]
cmp dword [edx], 0
jne 0x10038c4f
xor eax, eax
jmp 0x10038e82
push 0x40
push 0x1000
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x10038e79
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x18], edx
cmp dword [0x101d06f4], 0x5972
mov dword [ebp - 4], 0
jmp 0x10038c9a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
cmp dword [ebp - 4], edx
jge 0x10038cdc
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x14], 0
je 0x10038cda
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x14]
cmp ecx, dword [ebp - 0x18]
jae 0x10038cda
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x18], ecx
mov bh, bh
jmp 0x10038c91
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.1012f770
add esp, 0xc
push edx
pop edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xchg ebx, eax
xchg ebx, eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, 0xf8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov ah, ah
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x54]
push ecx
call fcn.100389b0
add esp, 8
mov edx, dword [ebp + 0x18]
add eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ah, ah
mov dword [ebp - 4], 0
jmp 0x10038d4f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx eax, word [edx + 6]
cmp dword [ebp - 4], eax
jge 0x10038e77
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
cmp dword [eax + ecx + 0xc], 0
je 0x10038d8c
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
add edx, dword [eax + ecx + 0xc]
mov dword [ebp - 0x14], edx
mov edi, edi
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
cmp dword [edx + eax + 0x10], 0
je 0x10038e49
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + eax + 0x10]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov edx, dword [ebp - 8]
add edx, dword [eax + ecx + 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.1012f770
add esp, 0xc
mov dh, dh
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
mov eax, dword [eax + ecx + 8]
cmp eax, dword [esi + edx + 0x10]
jae 0x10038e1e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + ecx + 0x10]
push ecx
call fcn.100389b0
add esp, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov bl, bl
jmp 0x10038e47
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + edx + 8]
push edx
call fcn.100389b0
add esp, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
xchg ebx, eax
xchg ebx, eax
jmp 0x10038e72
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + eax + 8]
push eax
call fcn.100389b0
add esp, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov edx, edx
jmp 0x10038d46
jmp 0x10038e7d
xor eax, eax
jmp 0x10038e82
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret