Function at 0x100a93f0
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, 0x100b3a40
jmp 0x100a9474
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 [0x100d3444]
push edx
push eax
push ecx
call sym.tcl85.dll_Tcl_UtfToExternalDString
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
mov edx, dword [0x100d3a70]
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 0x100a94f5
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 0x100a963d
mov ecx, dword [0x100d3a70]
mov edx, dword [ecx + 0x30]
lea eax, [esp + 0x220]
push eax
call edx
cmp eax, 0xffffffff
je 0x100a963d
test al, 0x10
jne 0x100a963d
mov edx, dword [0x100d3444]
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 0x100a9560
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x100a9580
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 0x100a95c1
push str..bat
push edi
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x100a96be
mov ecx, dword [0x100d3a70]
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 0x100a963d
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 0x100a964e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x100a963d
push str..com
push edi
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x100a96be
add ebp, 5
cmp ebp, 0x100b3a54
jl 0x100a9470
jmp 0x100a96c6
cmp word [esp + 0x1f8], 0x40
je 0x100a9662
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100a96be
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 0x100a96ab
cmp byte [esp + 0x15], 0x45
jne 0x100a96be
mov dword [esp + 0x18], 2
jmp 0x100a96c6
cmp al, 0x50
jne 0x100a96be
cmp byte [esp + 0x15], 0x45
mov dword [esp + 0x18], 3
je 0x100a96c6
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x108]
lea ecx, [esp + 0x114]
cmp eax, ecx
je 0x100a96e2
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 0x100a979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.MSVCR90.dll__errno]
cmp eax, 0x10c
jb 0x100a9745
sub eax, 0x2733
cmp eax, 0x25
jb 0x100a973c
call esi
mov dword [eax], 0x16
jmp 0x100a9750
mov edi, dword [eax*4 + 0x100b3be8]
jmp 0x100a974c
movzx edi, byte [eax + 0x100b3aa8]
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 0x100a9780
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 0x100bcfd0
push ecx
push str.couldnt_execute__
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x18
xor eax, eax
jmp 0x100a9807
cmp esi, 1
je 0x100a97a8
cmp esi, 2
jne 0x100a9805
mov ecx, dword [0x100d3a70]
push 0x104
lea edx, [esp + 0x224]
push edx
mov eax, edx
mov edx, dword [ecx + 0x3c]
push eax
call edx
mov edx, dword [0x100d3444]
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 0x100a97e5
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x100a9805
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.100b1b48
add esp, 0x424
ret