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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106e4
call fcn.0042f8a0
mov eax, dword [0x4c2174]
push ebx
push esi
inc eax
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov dword [0x4c2174], eax
cmp eax, 0x30
jge 0x473095
xor ebx, ebx
mov eax, ebx
lea ecx, [esp + 0x98]
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 1
mov byte [esp + 0x23], 1
mov byte [esp + 0x24], bl
call fcn.004048ba
mov edi, dword [ebp + 8]
push 0x2000
push edi
lea ecx, [esp + 0xa0]
call fcn.00404550
test al, al
je 0x4730af
lea ecx, [esp + 0xd0]
call fcn.0040d7f7
lea ecx, [esp + 0xd0]
call fcn.0041e968
lea ecx, [esp + 0x88]
call fcn.0040d7f7
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.0040660f
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x4c], 0x18
call fcn.0041eb66
push ebx
push esi
push edi
lea ecx, [esp + 0xa4]
call fcn.004046ce
cmp dword [esp + 0x60], 0x21335541
je 0x4730c9
lea eax, [esp + 0x2f0]
push eax
lea eax, [esp + 0x4f4]
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x98]
call fcn.00421dfc
add esp, 0x14
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x6f4]
push eax
call fcn.00420d23
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x6fc]
push eax
call fcn.00420cf4
add esp, 0x10
lea eax, [esp + 0x6f0]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push 0x2000
call fcn.0041f4ea
pop ecx
push eax
lea ecx, [esp + 0x48]
call fcn.004047b7
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x23], 1
jne 0x40ca9d
push ecx
push esi
lea ecx, [esp + 0xa0]
call fcn.0040b337
test al, al
je 0x40ca9d
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.0041c258
push esi
call fcn.0040cb93
push esi
test al, al
je 0x47346c
call fcn.0040cb5a
push esi
mov byte [esp + 0x26], bl
call fcn.00420cdb
pop ecx
mov dword [esp + 0x34], eax
cmp eax, 2
jle 0x40ca14
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.004216d0
pop ecx
test eax, eax
jne 0x40cb06
cmp byte [esp + 0x24], 1
je 0x47345f
push dword [esp + 0x88]
lea ecx, [esp + 0x6c]
call fcn.0040ce19
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x70]
push eax
push esi
mov ecx, edi
call fcn.0040cc24
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], eax
call fcn.0040cb37
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40cb31
cmp eax, 1
jle 0x40cb24
cmp eax, 3
jg 0x40cb1b
push dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
push esi
push eax
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.0041c682
cmp byte [esp + 0x22], 1
sete byte [esp + 0x24]
cmp byte [esp + 0x13], 1
je 0x40c99b
lea ecx, [esp + 0x98]
call fcn.00404907
push dword [esp + 0xd0]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov bl, byte [esp + 0x13]
lea ecx, [esp + 0x44]
call fcn.004047e2
lea ecx, [esp + 0x88]
call fcn.0040cb37
lea ecx, [esp + 0xd0]
call fcn.0040cb37
lea ecx, [esp + 0x98]
call fcn.004048dd
dec dword [0x4c2174]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x34]
cmp word [esi + eax*2 - 2], 0x5f
jne 0x40ca14
jmp 0x47344e
cmp eax, 4
jne 0x40cb24
mov byte [esp + 0x23], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x40ca88
mov byte [esp + 0x13], bl
jmp 0x40cb24
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.004425b5
xor bl, bl
jmp 0x40caf5
push dword [ebp + 0x14]
mov ecx, esi
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.004425b5
jmp 0x40cae9
cmp dword [esp + 0x64], 0x36304145
jne 0x40c91a
lea ecx, [esp + 0x98]
call fcn.00404907
mov eax, dword [ebp + 8]
push 2
push dword [eax]
lea ecx, [esp + 0x58]
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], bl
call fcn.004041a9
test eax, eax
jne 0x473136
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push str.___AUTOIT_SCRIPT___
lea ecx, [esp + 0x5c]
call fcn.0044c396
lea ecx, [esp + 0x50]
test eax, eax
je 0x473152
call fcn.00404252
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.004425b5
jmp 0x40cad1
call fcn.00404252
mov eax, dword [esp + 0x14]
push 4
mov edi, dword [eax]
pop edx
or eax, 0xffffffff
push 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], edi
mov word [esp + 0x34], ax
mov dword [esp + 0x7c], 0x49ddb4
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.0041f4ea
mov esi, eax
pop ecx
mov dword [esp + 0x3c], esi
test esi, esi
je 0x4731b0
mov dword [esi], 0x49ddb4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x4731b6
mov esi, ebx
mov dword [esp + 0x3c], esi
or eax, 0xffffffff
push 5
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], esi
mov word [esp + 0x36], ax
call fcn.0040bbfc
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x2c], edi
call fcn.0040ba85
xor eax, eax
inc eax
cmp edi, eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], eax
jl 0x4733ce
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, ecx
inc ecx
movzx eax, byte [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.0040bbfc
lea ecx, [esp + 0x28]
call fcn.00449cab
test al, al
je 0x47323d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, edx
add edx, 4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x47335d
lea ecx, [esp + 0x28]
call fcn.00449c95
test al, al
je 0x473269
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, edx
add edx, 8
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
jmp 0x47335d
lea ecx, [esp + 0x28]
call fcn.00449c7f
test al, al
je 0x47328e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, edx
add edx, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0x47335d
lea ecx, [esp + 0x28]
call fcn.0041d90c
test al, al
je 0x473361
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call fcn.00442551
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push eax
cmp ecx, 0x31
jne 0x4732e8
lea ecx, [esp + 0xe4]
call fcn.0040ce19
mov ecx, dword [edi + 4]
push dword [esp + 0xe0]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0xe0]
mov esi, eax
call fcn.0040cb37
push 1
jmp 0x47330c
cmp ecx, 0x30
jne 0x47331f
lea ecx, [esp + 0x6c]
call fcn.0040ce19
lea eax, [esp + 0x68]
push eax
call fcn.0041c2a5
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.0040cb37
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040bbfc
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x3c]
jmp 0x47334f
cmp ecx, 0x37
jne 0x473346
mov ecx, edi
call fcn.00442472
test eax, eax
je 0x473420
push dword [esp + 0x18]
call fcn.0041f55e
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x4731f8
lea ecx, [esp + 0x2c]
call fcn.00449c12
push dword [esp + 0x18]
call fcn.0041f55e
mov edx, dword [esp + 0x20]
pop ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.0040ba85
mov ecx, dword [esp + 0x18]
push 0x7f
pop edx
cmp dword [esp + 0x24], edx
jne 0x4731f8
mov ecx, dword [esi + 8]
cmp ecx, 2
jbe 0x4733b4
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4 - 8]
cmp word [eax + 8], dx
je 0x4733b4
inc dword [esp + 0x4c]
push 0x3b
pop eax
mov word [esp + 0x24], ax
or eax, 0xffffffff
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x10]
mov ecx, edi
call fcn.0041c682
jmp 0x4733bb
mov ecx, esi
call fcn.00442a8e
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x34]
jle 0x4731f4
push 5
lea ecx, [esp + 0x2c]
call fcn.0040bbfc
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [ecx]
lea eax, [esp + 0x28]
push eax
call fcn.00449b72
lea eax, [esp + 0x44]
push eax
lea ecx, [edi + 0x50]
call fcn.004629e8
push dword [esp + 0x14]
call fcn.00421c9d
mov bl, 1
pop ecx
lea ecx, [esp + 0x78]
call fcn.00404f11
lea ecx, [esp + 0x28]
call fcn.0041d8f5
jmp 0x40cad1
mov eax, dword [esp + 0x40]
push 0x49dc00
push str.Bad_directive_syntax_error
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.004425b5
push dword [esp + 0x18]
call fcn.0041f55e
pop ecx
push dword [esp + 0x14]
call fcn.00421c9d
jmp 0x473408
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov byte [esp + 0x22], 1
jmp 0x40ca14
push esi
mov ecx, edi
call fcn.0044240b
jmp 0x40ca88
mov eax, dword [esp + 0x18]
push str.Unterminated_string
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.004425b5
mov byte [esp + 0x13], bl
jmp 0x40ca9d