Function at 0x401f80
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
lea esi, [esp + 0x3c]
call fcn.0040e680
mov eax, dword [esp + 0x64]
xor ebp, ebp
push eax
mov ecx, esi
mov dword [esp + 0x18], ebp
call fcn.00402940
push 0x104
push 0x4a7d14
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x4a7d14
call fcn.0040ff90
lea esi, [esp + 0x40]
lea edi, [esp + 0x28]
mov bl, al
mov dword [0x4a7cf8], 0x4a7d14
call fcn.004107b0
mov edi, str.CMDLINERAW
lea esi, [esp + 0x18]
call fcn.00401b70
xor eax, eax
lea ecx, [ebp + 1]
lea edx, [esp + 0x28]
call fcn.004019e0
mov ecx, esi
call fcn.00402620
lea esi, [esp + 0x28]
call fcn.004092c0
mov edi, str.CMDLINE
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebp
call fcn.00401b70
xor eax, eax
mov ecx, 0x100
lea edx, [esp + 0x28]
call fcn.004019e0
mov ecx, esi
call fcn.00402620
lea esi, [esp + 0x18]
call fcn.00401b70
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x68]
push edx
xor ecx, ecx
call fcn.0040c3e0
mov ecx, esi
call fcn.00402620
mov ebp, dword [esp + 0x58]
lea ecx, [esp + 0x18]
call fcn.0040c060
lea ecx, [esp + 0x18]
lea eax, [esp + 0x3c]
call fcn.00401a70
mov esi, dword [esp + 0x18]
push esi
push str._ErrorStdOut
call fcn.004115d0
add esp, 8
test eax, eax
je 0x42c174
push esi
push str._AutoIt3OutputDebug
call fcn.004115d0
add esp, 8
test eax, eax
je 0x42c192
push esi
push str._AutoIt3ExecuteLine
call fcn.004115d0
add esp, 8
test eax, eax
je 0x42c1b0
push esi
push str._AutoIt3ExecuteScript
call fcn.004115d0
add esp, 8
test eax, eax
jne 0x40210b
test bl, bl
jne 0x42c20a
mov dword [0x4a7cfc], 3
lea ecx, [esp + 0x18]
lea eax, [esp + 0x3c]
call fcn.00401a70
mov edx, dword [esp + 0x18]
push edx
push 0x4a7d14
call fcn.00411691
add esp, 8
lea ecx, [esp + 0x18]
lea eax, [esp + 0x3c]
sub ebp, 2
call fcn.00401a70
mov esi, dword [esp + 0x18]
cmp word [0x4a7d14], 0
je 0x42c219
test ebp, ebp
jl 0x42c243
mov edi, dword [esp + 0x64]
lea eax, [ebp + 1]
push eax
push 1
mov eax, edi
call fcn.0040e7e0
push 0
push 1
push 0
push edi
call fcn.0040d030
add esp, 0x18
mov esi, eax
call fcn.004092c0
mov dword [esi + 8], 1
mov dword [esi], ebp
test ebp, ebp
jle 0x402184
xor ebx, ebx
inc ebx
push ebx
push 1
push 0
push edi
call fcn.0040d030
add esp, 0x10
lea edi, [esp + 0x18]
mov esi, eax
call fcn.0040e640
mov ecx, edi
lea eax, [esp + 0x3c]
call fcn.00401a70
cmp ebx, ebp
jl 0x42c23a
lea ecx, [esp + 0x18]
call fcn.00402620
lea esi, [esp + 0x28]
call fcn.004092c0
lea edi, [esp + 0x50]
call fcn.00401a30
mov dword [esp + 0x3c], 0
mov dword [esp + 0x50], 0x4848ec
call fcn.00401a30
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004112ef
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00402620
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
mov cl, bh
xchg ecx, eax
sahf
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x42c1ab
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00429fe7
sbb bh, byte [eax - 0x774ba0a]
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00429fe7
or ah, byte [edx - 0x74b67410]
xor al, 0x8b
xor ebx, esi
invalid
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x42c1d4
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x42c1d4
call fcn.00429fe7
push cs
mov dl, 1
dec edi
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00429fe7
and dword [ebx + 0x75ffd882], eax
or bh, bh
jne 0x42c21d
push dword [ebp]
call fcn.0042a7e7
push esp
invalid
invalid
mov edi, dword [esp + 0x64]
jmp 0x402157
xor ebp, ebp
jmp 0x402121