Function at 0x40329c
Capabilities:
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100e4
call fcn.00441bc0
mov eax, dword [0x4d2578]
push ebx
push esi
inc eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [0x4d2578], eax
push edi
cmp eax, 0x30
jge 0x442fd4
xor ebx, ebx
mov byte [esp + 0x13], 1
mov eax, ebx
mov byte [esp + 0x1e], 1
push 0x10000
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], bl
mov dword [esp + 0x64], ebx
call fcn.004201ab
pop ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], eax
call fcn.0040244e
lea ecx, [esp + 0x78]
call fcn.00403f6a
lea ecx, [esp + 0x60]
call fcn.0040244e
lea ecx, [esp + 0x60]
call fcn.0040244e
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x60]
mov eax, 0x8000
push eax
push edi
mov dword [esp + 0x90], eax
call fcn.00402478
test al, al
je 0x443401
lea ecx, [esp + 0x60]
call fcn.00402086
lea ecx, [esp + 0x60]
call fcn.00401f9c
lea ecx, [esp + 0x60]
call fcn.00401b7c
test byte [esp + 0x88], 3
jne 0x442fee
lea ecx, [esp + 0xd0]
call fcn.00403f6a
lea eax, [esp + 0xf0]
push eax
push 0x7fff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0xd4]
call fcn.004043ee
lea ecx, [esp + 0xc0]
call fcn.00403f6a
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.0041bdf5
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x60]
push eax
lea eax, [esp + 0xac]
mov dword [esp + 0x4c], 0x18
push eax
call fcn.00401b93
push ebx
push esi
push edi
lea ecx, [esp + 0x6c]
call fcn.00402289
cmp dword [esp + 0xb8], 0x21335541
je 0x44304f
lea ecx, [esp + 0x50]
call fcn.00403f6a
lea ecx, [esp + 0x28]
call fcn.00403f6a
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
lea edx, [esp + 0x5c]
lea ecx, [esp + 0xcc]
call fcn.0041bc41
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
call fcn.00404350
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.004020f8
lea ecx, [esp + 0x50]
call fcn.004020f8
push 0x2000
call fcn.004201ab
pop ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.00401912
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x1e], 1
jne 0x403567
push ecx
push esi
lea ecx, [esp + 0x68]
call fcn.00401bb0
test al, al
je 0x403567
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.00403823
push esi
call fcn.00403783
push esi
test al, al
je 0x4433e4
call fcn.00403870
push esi
mov byte [esp + 0x23], bl
call fcn.0042462e
mov dword [esp + 0x28], eax
pop ecx
cmp eax, 2
jle 0x4034da
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.00426000
pop ecx
test eax, eax
jne 0x4035e9
cmp byte [esp + 0x20], 1
je 0x4433c5
push dword [esp + 0xc0]
lea ecx, [esp + 0x9c]
call fcn.004045fd
lea eax, [esp + 0x60]
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xa0]
push eax
push esi
call fcn.004030f7
lea ecx, [esp + 0x98]
mov dword [esp + 0x24], eax
call fcn.004020f8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4035fe
cmp eax, 1
jle 0x403602
cmp eax, 3
jg 0x4433d2
push dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00403b42
cmp byte [esp + 0x13], 1
mov al, byte [esp + 0x1f]
mov byte [esp + 0x20], al
je 0x403464
lea ecx, [esp + 0x60]
call fcn.0040244e
push dword [esp + 0xd0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x4c]
mov bl, byte [esp + 0x13]
sub dword [eax], 1
jne 0x40359b
push 4
push eax
call fcn.0042016d
push esi
call fcn.004201b4
add esp, 0xc
lea ecx, [esp + 0xc0]
call fcn.004020f8
lea ecx, [esp + 0xd0]
call fcn.004020f8
lea ecx, [esp + 0x60]
call fcn.0040244e
lea ecx, [esp + 0x78]
call fcn.004020f8
lea ecx, [esp + 0x60]
call fcn.0040244e
push dword [esp + 0x64]
call fcn.004201b4
pop ecx
dec dword [0x4d2578]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x24]
cmp word [esi + eax*2 - 2], 0x5f
jne 0x4034da
jmp 0x4433b4
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x403554
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.00469d04
xor bl, bl
jmp 0x4035d8
test byte [esp + 0x88], 1
je 0x443006
mov eax, dword [esp + 0x70]
or eax, dword [esp + 0x74]
jne 0x403361
cmp dword [esp + 0x8c], 3
jne 0x443019
push 3
push 0x4c220c
jmp 0x443041
cmp dword [esp + 0x8c], 5
jne 0x44302c
push 2
push 0x4c2214
jmp 0x443041
cmp dword [esp + 0x8c], 7
jne 0x403361
push 2
push 0x4c2210
lea ecx, [esp + 0x68]
call fcn.0046d0f2
jmp 0x403361
cmp dword [esp + 0xbc], 0x36304145
jne 0x4033f1
lea ecx, [esp + 0x60]
call fcn.0040244e
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xa8]
push 2
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
push dword [eax]
mov byte [esp + 0xc4], bl
call fcn.004017b5
test eax, eax
jne 0x443398
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push str.___AUTOIT_SCRIPT___
lea ecx, [esp + 0xb4]
call fcn.00473033
lea ecx, [esp + 0xa8]
mov esi, eax
call fcn.00401825
test esi, esi
jne 0x443398
mov eax, dword [esp + 0x14]
push 4
pop esi
push 0x10
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
or eax, 0xffffffff
mov word [esp + 0x34], ax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.0042017b
mov edi, eax
or eax, 0xffffffff
pop ecx
push 5
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], edi
mov dword [edi], 0x49c9a0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x36], ax
call fcn.004027e7
mov eax, dword [esp + 0x38]
mov ecx, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.00403e23
mov edi, dword [esp + 0x18]
xor eax, eax
inc eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x38], eax
jl 0x443305
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
add eax, esi
inc esi
mov dword [esp + 0x18], esi
movzx eax, byte [eax]
push eax
mov dword [esp + 0x4c], eax
call fcn.004027e7
push 0xf
pop edx
cmp word [esp + 0x30], dx
ja 0x443186
mov eax, dword [esp + 0x14]
add eax, esi
add esi, 4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x443297
mov ecx, dword [esp + 0x30]
lea eax, [ecx - 0x10]
cmp ax, dx
ja 0x4431ad
mov ecx, dword [esp + 0x14]
add ecx, esi
add esi, 8
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
jmp 0x443297
lea eax, [ecx - 0x20]
cmp ax, dx
ja 0x4431c9
mov eax, dword [esp + 0x14]
add eax, esi
add esi, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0x443297
lea eax, [ecx - 0x30]
cmp ax, dx
ja 0x443297
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.00469ae5
mov esi, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], esi
push esi
cmp eax, 0x31
jne 0x443220
lea ecx, [esp + 0xe4]
call fcn.004045fd
mov ecx, dword [edi + 4]
push dword [esp + 0xe0]
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0xe0]
mov esi, eax
call fcn.004020f8
push 1
jmp 0x44324c
cmp eax, 0x30
jne 0x44325f
lea ecx, [esp + 0x9c]
call fcn.004045fd
lea ecx, [esp + 0x98]
call fcn.00401b52
lea ecx, [esp + 0x98]
mov esi, eax
call fcn.004020f8
push ebx
lea ecx, [esp + 0x2c]
call fcn.004027e7
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
jmp 0x44328c
cmp eax, 0x37
jne 0x443283
mov ecx, edi
call fcn.00469a06
test eax, eax
je 0x44336d
push esi
call fcn.004201b4
mov esi, dword [esp + 0x1c]
pop ecx
jmp 0x44314c
lea ecx, [esp + 0x2c]
call fcn.00470f1a
push esi
call fcn.004201b4
mov esi, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push eax
call fcn.00403e23
cmp dword [esp + 0x48], 0x7f
jne 0x44314c
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 8]
cmp edx, 2
jbe 0x4432ed
mov eax, dword [ecx + 4]
push 0x7f
mov eax, dword [eax + edx*4 - 8]
pop edx
cmp word [eax + 8], dx
je 0x4432ed
inc dword [esp + 0x40]
mov ecx, edi
push 0x3b
pop eax
mov word [esp + 0x20], ax
or eax, 0xffffffff
push eax
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x10]
call fcn.00403b42
jmp 0x4432f2
call fcn.0046a026
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x38]
jle 0x44314c
push 5
lea ecx, [esp + 0x2c]
call fcn.004027e7
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
call fcn.00470e79
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0x50]
call fcn.0048b4f2
push dword [esp + 0x14]
call fcn.00424649
mov bl, 1
pop ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x49c9a0
call fcn.00403d90
push dword [esp + 0x54]
call fcn.004201b4
pop ecx
lea ecx, [esp + 0x28]
call fcn.004027d4
jmp 0x40359b
mov eax, dword [esp + 0x3c]
mov ecx, edi
push 0x49c9dc
push str.Bad_directive_syntax_error
push eax
push dword [ebp + 8]
call fcn.00469d04
push esi
call fcn.004201b4
pop ecx
push dword [esp + 0x14]
call fcn.00424649
jmp 0x443343
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00469d04
jmp 0x40359b
xor ecx, ecx
mov byte [esp + 0x1f], 1
mov word [esi + eax*2 - 2], cx
jmp 0x4034da
push esi
mov ecx, edi
call fcn.0046999f
jmp 0x403554
cmp eax, 4
jne 0x403602
mov byte [esp + 0x1e], bl
jmp 0x403602
mov eax, dword [esp + 0x18]
mov ecx, edi
push str.Unterminated_string
push eax
push dword [ebp + 0x10]
call fcn.00469d04
mov byte [esp + 0x13], bl
jmp 0x403567
push dword [ebp + 0x14]
mov ecx, esi
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00469d04
jmp 0x4035b3