Function at 0x100aa9a0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x424
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x42c]
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
mov edi, ecx
xor ebx, ebx
push eax
lea edx, [esp + 0x110]
lea ecx, [esp + 0x11c]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], 0xc8
mov byte [esp + 0x120], bl
call sym.tcl85.dll_Tcl_DStringAppend
mov eax, dword [esp + 0x118]
add esp, 0xc
mov dword [esp + 0x28], eax
mov ebp, 0x100b4a40
jmp 0x100aaa24
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x10c]
push edx
call sym.tcl85.dll_Tcl_DStringSetLength
push 0xffffffffffffffff
lea eax, [esp + 0x114]
push ebp
push eax
call sym.tcl85.dll_Tcl_DStringAppend
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [0x100d43b4]
push edx
push eax
push ecx
call sym.tcl85.dll_Tcl_UtfToExternalDString
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
mov edx, dword [0x100d4af8]
lea ecx, [esp + 0x224]
push ecx
push 0x104
push ebx
push eax
mov eax, dword [edx + 0x5c]
push ebx
call eax
mov esi, eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x100aaaa5
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea edx, [esp + 0x3c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xc8
mov byte [esp + 0x3c], bl
cmp esi, ebx
je 0x100aabed
mov ecx, dword [0x100d4af8]
mov edx, dword [ecx + 0x30]
lea eax, [esp + 0x220]
push eax
call edx
cmp eax, 0xffffffff
je 0x100aabed
test al, 0x10
jne 0x100aabed
mov edx, dword [0x100d43b4]
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x228]
push ecx
push edx
call sym.tcl85.dll_Tcl_ExternalToUtfDString
add esp, 0x10
mov edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x100aab10
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x100aab30
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea edx, [esp + 0x3c]
push 0x2e
push edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0xc8
mov byte [esp + 0x44], bl
call dword [sym.imp.MSVCR90.dll_strrchr]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x100aab71
push str..bat
push edi
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x100aac6e
mov ecx, dword [0x100d4af8]
mov edx, dword [ecx + 0x14]
push ebx
push 0x80
push 3
push ebx
push 1
push accept
lea eax, [esp + 0x238]
push eax
call edx
mov esi, eax
cmp esi, 0xffffffff
je 0x100aabed
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0x40
lea edx, [esp + 0x1ec]
push edx
xor eax, eax
push esi
mov word [esp + 0x1f4], ax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x5a4d
cmp word [esp + 0x1e0], ax
je 0x100aabfe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x100aabed
push str..com
push edi
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x100aac6e
add ebp, 5
cmp ebp, 0x100b4a54
jl 0x100aaa20
jmp 0x100aac76
cmp word [esp + 0x1f8], 0x40
je 0x100aac12
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100aac6e
mov ecx, dword [esp + 0x21c]
push ebx
push ebx
push ecx
push esi
mov byte [esp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea edx, [esp + 0x28]
push edx
push 2
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x14]
cmp al, 0x4e
jne 0x100aac5b
cmp byte [esp + 0x15], 0x45
jne 0x100aac6e
mov dword [esp + 0x18], 2
jmp 0x100aac76
cmp al, 0x50
jne 0x100aac6e
cmp byte [esp + 0x15], 0x45
mov dword [esp + 0x18], 3
je 0x100aac76
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x108]
lea ecx, [esp + 0x114]
cmp eax, ecx
je 0x100aac92
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x114]
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], 0xc8
mov byte [esp + 0x114], bl
cmp esi, ebx
jne 0x100aad4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.MSVCR90.dll__errno]
cmp eax, 0x10c
jb 0x100aacf5
sub eax, 0x2733
cmp eax, 0x25
jb 0x100aacec
call esi
mov dword [eax], 0x16
jmp 0x100aad00
mov edi, dword [eax*4 + 0x100b4be8]
jmp 0x100aacfc
movzx edi, byte [eax + 0x100b4aa8]
call esi
mov dword [eax], edi
call esi
mov eax, dword [eax]
push eax
call sym.tcl85.dll_Tcl_ErrnoMsg
add esp, 4
mov esi, eax
call sym.tcl85.dll_Tcl_ErrnoId
mov edi, dword [esp + 0x438]
cmp edi, ebx
je 0x100aad30
push ebx
push esi
push eax
push str.POSIX
push edi
call sym.tcl85.dll_Tcl_SetErrorCode
add esp, 0x14
mov ecx, dword [esp + 0x20]
push ebx
push esi
push 0x100be318
push ecx
push str.couldnt_execute__
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x18
xor eax, eax
jmp 0x100aadb7
cmp esi, 1
je 0x100aad58
cmp esi, 2
jne 0x100aadb5
mov ecx, dword [0x100d4af8]
push 0x104
lea edx, [esp + 0x224]
push edx
mov eax, edx
mov edx, dword [ecx + 0x3c]
push eax
call edx
mov edx, dword [0x100d43b4]
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x228]
push ecx
push edx
call sym.tcl85.dll_Tcl_ExternalToUtfDString
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x100aad95
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x100aadb5
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b30c8
add esp, 0x424
ret