Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1001d004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
mov edi, ecx
mov dword [ebp - 0x30], edi
cmp esi, 0x40
jbe 0x10001488
test edi, edi
je 0x10001488
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10001488
mov ecx, dword [edi + 0x3c]
lea eax, [ecx + 0xf8]
cmp esi, eax
jb 0x10001488
add ecx, edi
mov dword [ebp - 0x2c], ecx
cmp dword [ecx], 0x4550
jne 0x10001488
mov ax, word [ecx + 0x16]
mov edx, 0x2002
and ax, dx
cmp ax, dx
jne 0x10001488
mov eax, 0xe0
cmp word [ecx + 0x14], ax
jne 0x10001488
movzx ebx, word [ecx + 6]
xor edx, edx
test ebx, ebx
je 0x10001104
add ecx, 0x108
nop dword [eax]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, esi
ja 0x10001488
inc edx
add ecx, 0x28
cmp edx, ebx
jl 0x100010a0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [eax + 0x38]
lea edi, [eax + 0x108]
mov eax, dword [eax + 0x54]
dec eax
add eax, ecx
div ecx
mov esi, eax
imul esi, ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [edi - 8]
cmp dword [edi], edx
cmovg edx, dword [edi]
lea edi, [edi + 0x28]
mov ecx, dword [eax + 0x38]
add edx, dword [edi - 0x2c]
lea eax, [ecx - 1]
add eax, edx
xor edx, edx
div ecx
imul eax, ecx
cmp esi, eax
cmovge eax, esi
mov esi, eax
sub ebx, 1
jne 0x100010d0
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
jmp 0x10001119
mov ebx, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx + 0x54]
dec eax
add eax, ecx
div ecx
mov esi, eax
imul esi, ecx
test esi, esi
je 0x10001488
push 0x40
push 0x1000
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
push 0xffffffffffffffff
mov eax, dword [eax + 4]
call eax
cmp dword [ebp - 0x20], 0
je 0x10001488
movzx edx, word [ebx + 6]
xor esi, esi
mov eax, edx
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x54]
lea ebx, [eax + ecx*8]
mov eax, edx
test ebx, ebx
jle 0x10001177
mov eax, dword [ebp - 0x20]
mov cl, byte [edi + esi]
mov byte [esi + eax], cl
inc esi
cmp esi, ebx
jl 0x10001160
mov esi, dword [ebp - 0x2c]
movzx eax, word [esi + 6]
jmp 0x1000117a
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x28], ecx
cmp dx, ax
jae 0x100011cd
add esi, 0x108
nop
mov edx, dword [esi - 4]
test edx, edx
je 0x100011be
cmp dword [esi], 0
je 0x100011be
mov ebx, dword [ebp - 0x20]
add ebx, edx
xor edx, edx
cmp dword [esi], edx
jbe 0x100011bb
mov eax, dword [esi + 4]
lea ecx, [edi + edx]
mov al, byte [ecx + eax]
mov byte [edx + ebx], al
inc edx
cmp edx, dword [esi]
jb 0x100011a7
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
movzx eax, word [ebx + 6]
inc ecx
add esi, 0x28
mov dword [ebp - 0x28], ecx
cmp ecx, eax
jl 0x10001190
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x10001357
cmp dword [ebx + 0xa4], 0
jbe 0x10001357
mov ecx, dword [ebp - 0x20]
xor edi, edi
mov edx, ecx
sub edx, dword [ebx + 0x34]
mov dword [ebp - 0x30], edx
lea ebx, [eax + ecx]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ecx
add eax, ecx
je 0x10001357
mov dword [ebp - 0x3c], 0x3000
mov dword [ebp - 0x40], 0xa000
nop dword [eax]
lea esi, [ecx - 8]
mov ecx, 0
shr esi, 1
lea edx, [ebx + 8]
je 0x10001253
mov ebx, 0xf000
mov ax, bx
and ax, word [edx + ecx*2]
cmp ax, word [ebp - 0x3c]
je 0x10001247
cmp ax, word [ebp - 0x40]
jne 0x10001248
inc edi
inc ecx
add edx, 2
cmp ecx, esi
jl 0x10001234
mov ebx, dword [ebp - 0x28]
add ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x24], ecx
add eax, ecx
jne 0x10001220
test edi, edi
je 0x10001357
push 0x40
lea eax, [edi*4 + 4]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0x1000
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x34]
push 0xffffffffffffffff
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x10001357
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xa0]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
add eax, ecx
je 0x10001357
lea eax, [ecx - 8]
mov ebx, 0
shr eax, 1
mov dword [ebp - 0x38], eax
je 0x10001344
nop
movzx ecx, word [edx + ebx*2 + 8]
mov eax, ecx
and eax, 0xf000
cmp ax, word [ebp - 0x3c]
je 0x100012e8
cmp ax, word [ebp - 0x40]
jne 0x10001338
and ecx, 0xfff
xor eax, eax
add ecx, dword [edx]
add ecx, dword [ebp - 0x20]
test edi, edi
jle 0x10001317
nop dword [eax]
mov edx, dword [esi + eax*4]
test edx, edx
je 0x10001317
cmp edx, ecx
je 0x10001338
inc eax
cmp eax, edi
jl 0x10001300
mov eax, dword [ebp - 0x30]
add dword [ecx], eax
jmp 0x10001320
mov eax, dword [ebp - 0x30]
add dword [ecx], eax
test edi, edi
jle 0x10001335
mov esi, dword [ebp - 0x24]
xor eax, eax
cmp dword [esi + eax*4], 0
je 0x10001332
inc eax
cmp eax, edi
jl 0x10001325
jmp 0x10001338
mov dword [esi + eax*4], ecx
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
inc ebx
cmp ebx, dword [ebp - 0x38]
jl 0x100012d0
mov ecx, dword [edx + 4]
mov eax, dword [edx + ecx]
add edx, ecx
mov dword [ebp - 0x28], edx
mov ecx, dword [edx + 4]
add eax, ecx
jne 0x100012c0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x10001488
mov ebx, dword [ebp - 0x20]
add ebx, ecx
mov dword [ebp - 0x30], ebx
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x10001470
nop dword [eax + eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [ebx + 0x10]
add esi, ecx
mov dword [ebp - 0x38], esi
lea ebx, [eax + ecx]
test eax, eax
jne 0x10001396
mov ebx, esi
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
add eax, edx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
mov eax, dword [esi + 0xc]
call eax
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x10]
call eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 8]
push 0
push 0
call eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x14]
call eax
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x10001488
mov ecx, dword [ebx]
xor esi, esi
test ecx, ecx
je 0x1000145c
xor edi, edi
nop dword [eax]
mov dword [ebp - 0x28], 0
test ecx, ecx
jns 0x10001410
movzx eax, cx
test eax, eax
je 0x10001488
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0
push edx
jmp 0x10001434
mov eax, dword [ebp - 0x20]
add eax, 2
add eax, ecx
je 0x10001488
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
call eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10001488
mov ecx, dword [ebp - 0x38]
inc esi
mov dword [ecx + edi], eax
lea edi, [esi*4]
mov ecx, dword [ebx + edi]
test ecx, ecx
je 0x1000145c
mov edx, dword [ebp - 0x24]
jmp 0x100013f0
mov ebx, dword [ebp - 0x30]
add ebx, 0x14
mov dword [ebp - 0x30], ebx
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x10001380
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
push 0
push 1
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push ecx
add eax, ecx
call eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10004dd9
mov esp, ebp
pop ebp
ret 4