Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp + 0x10]
mov dword [ebp - 0x124], ecx
movzx eax, cx
mov byte [ebp - 0x109], dl
mov byte [ebp - 0x128], dl
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x110], ebx
push esi
push edi
test ecx, ecx
je 0x10001408
mov dword [ebp - 0x11c], 0xffff
cmp ecx, 0xffff
jae 0x1000105c
mov dword [ebp - 0x11c], eax
jmp 0x1000108b
cmp byte [ecx], 0x23
jne 0x1000108b
lea eax, [ecx + 1]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
cmp eax, 0xffff
jae 0x1000108b
test eax, eax
je 0x1000108b
movzx edx, ax
movzx eax, dx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], eax
test ebx, ebx
je 0x10001408
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x10001408
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x118], eax
cmp dword [eax], 0x4550
jne 0x10001408
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push eax
push 0
push dword [ebp - 0x128]
push ebx
call fcn.10001790
mov edx, eax
mov dword [ebp - 0x108], edx
test edx, edx
je 0x10001408
mov ebx, dword [ebp - 0x114]
mov dword [ebp - 0x130], ebx
test ebx, ebx
je 0x10001408
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x10001408
cmp ebx, 0x28
ja 0x1000112e
mov eax, dword [edx + 0x18]
cmp ecx, eax
cmova eax, ecx
mov ecx, dword [ebp - 0x110]
imul ebx, eax, 0xff
add ebx, dword [edx + 0x24]
sub ebx, edx
add ebx, ecx
mov dword [ebp - 0x130], ebx
jmp 0x10001134
mov ecx, dword [ebp - 0x110]
cmp byte [ebp - 0x109], 0
mov eax, dword [edx + 0x20]
mov esi, dword [edx + 0x1c]
mov edi, dword [edx + 0x24]
je 0x10001168
add eax, ecx
lea ebx, [ecx + edi]
mov dword [ebp - 0x114], eax
lea eax, [ecx + esi]
mov esi, dword [ebp - 0x118]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x134], ebx
jmp 0x100011b1
push eax
push ecx
push dword [ebp - 0x118]
call fcn.100019b0
mov ebx, dword [ebp - 0x110]
push esi
mov esi, dword [ebp - 0x118]
push ebx
push esi
mov dword [ebp - 0x114], eax
call fcn.100019b0
push edi
push ebx
push esi
mov dword [ebp - 0x12c], eax
call fcn.100019b0
mov edx, dword [ebp - 0x108]
mov ebx, eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x134], eax
xor eax, eax
mov dword [ebp - 0x120], eax
cmp dword [edx + 0x14], eax
jbe 0x10001408
movzx ebx, word [ebx + eax*2]
mov edi, dword [ebp - 0x12c]
mov eax, ebx
mov edi, dword [edi + eax*4]
test edi, edi
je 0x10001256
cmp byte [ebp - 0x109], 0
mov eax, dword [ebp - 0x120]
je 0x1000137b
mov esi, dword [ebp - 0x114]
add edi, ecx
mov esi, dword [esi + eax*4]
add esi, ecx
cmp edi, edx
jbe 0x100013a7
mov eax, dword [ebp - 0x130]
add eax, edx
cmp edi, eax
jae 0x100013a7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001216
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x100
jae 0x10001250
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
test esi, esi
je 0x10001250
cmp byte [ebp + eax - 0x104], 0x2e
je 0x10001283
inc eax
cmp eax, esi
jb 0x10001241
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
cmp eax, dword [edx + 0x14]
jae 0x10001408
mov ecx, dword [ebp - 0x110]
mov esi, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x134]
jmp 0x100011c2
cmp eax, 0x100
jae 0x1000141d
lea esi, [edi + 1]
mov byte [ebp + eax - 0x104], 0
add esi, eax
je 0x10001250
cmp byte [esi], 0x23
jne 0x10001311
lea eax, [esi + 1]
test eax, eax
je 0x10001250
mov ebx, dword [ebp - 0x11c]
mov ecx, 0xffff
cmp bx, cx
jae 0x10001250
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, eax
add esp, 4
cmp esi, 0xffff
ja 0x10001250
test esi, esi
je 0x10001250
movzx ecx, bx
cmp esi, ecx
jne 0x10001250
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x128]
push ecx
movzx ecx, si
push ecx
push eax
call section..text
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d1f0
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x124]
mov ecx, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001340
test dl, dl
je 0x1000133c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001340
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001320
xor eax, eax
jmp 0x10001345
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001250
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x128]
push ecx
push esi
push eax
call section..text
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d1f0
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x114]
push dword [edx + eax*4]
push ecx
push esi
call fcn.100019b0
push edi
push dword [ebp - 0x110]
mov esi, eax
push dword [ebp - 0x118]
call fcn.100019b0
mov edx, dword [ebp - 0x108]
mov edi, eax
mov eax, dword [ebp - 0x124]
cmp eax, 0xffff
jbe 0x100013df
mov ecx, eax
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x100013d6
test al, al
je 0x100013d2
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x100013d6
add ecx, 2
add esi, 2
test al, al
jne 0x100013b6
xor eax, eax
jmp 0x100013db
sbb eax, eax
or eax, 1
test eax, eax
je 0x100013f3
mov eax, dword [ebp - 0x11c]
lea ecx, [ebx + 1]
movzx eax, ax
cmp ecx, eax
jne 0x10001256
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d1f0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d1f0
mov esp, ebp
pop ebp
ret 0xc
call fcn.1001d108
int3