Function at 0x4067fc
Capabilities:
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x4c43b4]
push ebx
push esi
inc eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [0x4c43b4], eax
push edi
cmp eax, 0x30
jge 0x43d59b
xor ebx, ebx
mov byte [esp + 0x13], 1
mov eax, ebx
mov byte [esp + 0x22], 1
lea ecx, [esp + 0x98]
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], bl
call fcn.004054ee
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x98]
push 0x2000
push edi
call fcn.0040554e
test al, al
je 0x43d5b5
lea ecx, [esp + 0xd0]
call fcn.004073d7
lea ecx, [esp + 0xd0]
call fcn.0041f8d8
lea ecx, [esp + 0x88]
call fcn.004073d7
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.00404894
mov edi, dword [esp + 0xa8]
lea eax, [esp + 0x44]
mov esi, dword [esp + 0xac]
lea ecx, [esp + 0x98]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x48], 0x18
push eax
call fcn.004055ab
push ebx
push esi
push edi
lea ecx, [esp + 0xa4]
call fcn.00405855
cmp dword [esp + 0x70], 0x21335541
je 0x43d5cf
lea ecx, [esp + 0x50]
call fcn.004073d7
lea ecx, [esp + 0x28]
call fcn.004073d7
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x94]
call fcn.004046df
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
call fcn.0040789e
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.00405832
lea ecx, [esp + 0x50]
call fcn.00405832
push 0x2000
call fcn.0041fd2e
pop ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00405072
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x22], 1
jne 0x406a57
push ecx
push esi
lea ecx, [esp + 0xa0]
call fcn.004055c8
test al, al
je 0x406a57
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.00406cdb
push esi
call fcn.00406c4a
push esi
test al, al
je 0x43d969
call fcn.00406d28
push esi
mov byte [esp + 0x27], bl
call fcn.00421b6c
mov dword [esp + 0x3c], eax
pop ecx
cmp eax, 2
jle 0x4069cb
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.004225af
pop ecx
test eax, eax
jne 0x406acd
cmp byte [esp + 0x24], 1
je 0x43d95c
push dword [esp + 0x88]
lea ecx, [esp + 0x7c]
call fcn.00407b51
lea eax, [esp + 0x98]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0040664c
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], eax
call fcn.00405832
mov eax, dword [esp + 0x38]
test eax, eax
je 0x406af8
cmp eax, 1
jle 0x406aeb
cmp eax, 3
jg 0x406ae2
push dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00406f91
cmp byte [esp + 0x23], 1
sete byte [esp + 0x24]
cmp byte [esp + 0x13], 1
je 0x406952
lea ecx, [esp + 0x98]
call fcn.00405a1f
push dword [esp + 0xd0]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x48]
mov bl, byte [esp + 0x13]
dec dword [eax]
jne 0x406a98
push eax
call fcn.0041fda4
pop ecx
push esi
call fcn.0041fda4
pop ecx
mov eax, dword [esp + 0x38]
cmp word [esi + eax*2 - 2], 0x5f
jne 0x4069cb
jmp 0x43d94b
cmp eax, 4
jne 0x406aeb
mov byte [esp + 0x22], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x406a42
mov byte [esp + 0x13], bl
jmp 0x406aeb
push dword [ebp + 0x14]
push str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.0045e787
xor bl, bl
jmp 0x406abc
push dword [ebp + 0x14]
mov ecx, esi
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.0045e787
jmp 0x406ab0
cmp dword [esp + 0x74], 0x36304145
jne 0x4068df
lea ecx, [esp + 0x98]
call fcn.00405a1f
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x60]
push 2
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
push dword [eax]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x7c], bl
call fcn.00404f18
test eax, eax
jne 0x43d63c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
push str.___AUTOIT_SCRIPT___
lea ecx, [esp + 0x6c]
call fcn.004682d3
lea ecx, [esp + 0x60]
test eax, eax
je 0x43d658
call fcn.00404f85
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.0045e787
jmp 0x406a98
call fcn.00404f85
mov eax, dword [esp + 0x14]
push 4
pop edx
push 0x10
mov edi, dword [eax]
or eax, 0xffffffff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], edi
mov word [esp + 0x34], ax
mov dword [esp + 0x54], 0x48eb68
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.0041fd2e
mov esi, eax
mov dword [esp + 0x44], esi
pop ecx
test esi, esi
je 0x43d6ad
mov dword [esi], 0x48eb68
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x43d6b3
mov esi, ebx
mov dword [esp + 0x40], esi
or eax, 0xffffffff
mov dword [esp + 0x44], esi
push 5
lea ecx, [esp + 0x2c]
mov word [esp + 0x36], ax
call fcn.00405b22
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
push eax
mov ecx, esi
call fcn.0040727f
xor eax, eax
mov dword [esp + 0x3c], ebx
inc eax
cmp edi, eax
mov dword [esp + 0x4c], eax
mov edi, dword [esp + 0x1c]
jl 0x43d8cb
xor ecx, ecx
mov byte [esp + 0x23], 1
mov word [esi + eax*2 - 2], cx
jmp 0x4069cb
push esi
mov ecx, edi
call fcn.0045e5dd
jmp 0x406a42
mov eax, dword [esp + 0x18]
mov ecx, edi
push str.Unterminated_string
push eax
push dword [ebp + 0x10]
call fcn.0045e787
mov byte [esp + 0x13], bl
jmp 0x406a57