Function at 0xc56bec
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 [0xd174a4]
push ebx
push esi
inc eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [0xd174a4], eax
push edi
cmp eax, 0x30
jge 0xc8e847
xor ebx, ebx
mov byte [esp + 0x13], 1
mov eax, ebx
mov byte [esp + 0x22], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], bl
call fcn.00c55906
mov edi, dword [ebp + 8]
lea ecx, [esp + 0xa8]
push 0x8000
push edi
call fcn.00c55956
test al, al
je 0xc8e861
lea ecx, [esp + 0x98]
call fcn.00c577c7
lea ecx, [esp + 0x98]
call fcn.00c70b9b
lea ecx, [esp + 0x88]
call fcn.00c577c7
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.00c548ae
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0x44]
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 0xa8]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x48], 0x18
push eax
call fcn.00c559b0
push ebx
push esi
push edi
lea ecx, [esp + 0xb4]
call fcn.00c55c4e
cmp dword [esp + 0x70], 0x21335541
je 0xc8e87b
lea ecx, [esp + 0x50]
call fcn.00c577c7
lea ecx, [esp + 0x28]
call fcn.00c577c7
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x94]
call fcn.00c546f9
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
call fcn.00c57c8e
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.00c55a64
lea ecx, [esp + 0x50]
call fcn.00c55a64
push 0x2000
call fcn.00c70ff6
pop ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00c5538e
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x22], 1
jne 0xc56e47
push ecx
push esi
lea ecx, [esp + 0xb0]
call fcn.00c559cd
test al, al
je 0xc56e47
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.00c570bd
push esi
call fcn.00c5702c
push esi
test al, al
je 0xc8ec07
call fcn.00c5710a
push esi
mov byte [esp + 0x27], bl
call fcn.00c72e3c
mov dword [esp + 0x3c], eax
pop ecx
cmp eax, 2
jle 0xc56dbb
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.00c7387d
pop ecx
test eax, eax
jne 0xc56eaf
cmp byte [esp + 0x24], 1
je 0xc8ebfa
push dword [esp + 0x88]
lea ecx, [esp + 0x7c]
call fcn.00c57f41
lea eax, [esp + 0xa8]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.00c56a3c
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], eax
call fcn.00c55a64
mov eax, dword [esp + 0x38]
test eax, eax
je 0xc56eda
cmp eax, 1
jle 0xc56ecd
cmp eax, 3
jg 0xc56ec4
push dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00c57373
cmp byte [esp + 0x23], 1
sete byte [esp + 0x24]
cmp byte [esp + 0x13], 1
je 0xc56d42
lea ecx, [esp + 0xa8]
call fcn.00c55dcf
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x48]
mov bl, byte [esp + 0x13]
dec dword [eax]
jne 0xc56e7a
push eax
call fcn.00c7106c
pop ecx
push esi
call fcn.00c7106c
pop ecx
lea ecx, [esp + 0x88]
call fcn.00c55a64
lea ecx, [esp + 0x98]
call fcn.00c55a64
lea ecx, [esp + 0xa8]
call fcn.00c55934
dec dword [0xd174a4]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x38]
cmp word [esi + eax*2 - 2], 0x5f
jne 0xc56dbb
jmp 0xc8ebe9
cmp eax, 4
jne 0xc56ecd
mov byte [esp + 0x22], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0xc56e32
mov byte [esp + 0x13], bl
jmp 0xc56ecd
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.00cafcb1
xor bl, bl
jmp 0xc56e9e
push dword [ebp + 0x14]
mov ecx, esi
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00cafcb1
jmp 0xc56e92
cmp dword [esp + 0x74], 0x36304145
jne 0xc56ccf
lea ecx, [esp + 0xa8]
call fcn.00c55dcf
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x60]
push 2
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
push dword [eax]
mov byte [esp + 0x7c], bl
call fcn.00c54f3d
test eax, eax
jne 0xc8e8da
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
push str.___AUTOIT_SCRIPT___
lea ecx, [esp + 0x6c]
call fcn.00cb97e5
lea ecx, [esp + 0x60]
test eax, eax
je 0xc8e8f6
call fcn.00c54faa
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.00cafcb1
jmp 0xc56e7a
call fcn.00c54faa
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], 0xcdfb78
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.00c70ff6
mov esi, eax
mov dword [esp + 0x44], esi
pop ecx
test esi, esi
je 0xc8e94b
mov dword [esi], 0xcdfb78
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0xc8e951
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.00c55f12
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
push eax
mov ecx, esi
call fcn.00c5766f
xor eax, eax
mov dword [esp + 0x3c], ebx
inc eax
cmp edi, eax
mov dword [esp + 0x4c], eax
mov edi, dword [esp + 0x1c]
jl 0xc8eb69
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x28]
movzx eax, byte [eax]
push eax
mov dword [esp + 0x28], eax
call fcn.00c55f12
lea ecx, [esp + 0x28]
call fcn.00cb768b
test al, al
je 0xc8e9d8
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 0xc8eaf8
lea ecx, [esp + 0x28]
call fcn.00cb7675
test al, al
je 0xc8ea04
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 0xc8eaf8
lea ecx, [esp + 0x28]
call fcn.00cb765f
test al, al
je 0xc8ea29
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, edx
add edx, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0xc8eaf8
lea ecx, [esp + 0x28]
call fcn.00c55f8a
test al, al
je 0xc8eafc
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call fcn.00cafc4d
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push eax
cmp ecx, 0x31
jne 0xc8ea83
lea ecx, [esp + 0xe4]
call fcn.00c57f41
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.00c55a64
push 1
jmp 0xc8eaa7
cmp ecx, 0x30
jne 0xc8eaba
lea ecx, [esp + 0x7c]
call fcn.00c57f41
lea eax, [esp + 0x78]
push eax
call fcn.00c56999
lea ecx, [esp + 0x78]
mov esi, eax
call fcn.00c55a64
push ebx
lea ecx, [esp + 0x2c]
call fcn.00c55f12
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x40]
jmp 0xc8eaea
cmp ecx, 0x37
jne 0xc8eae1
mov ecx, edi
call fcn.00cafb6e
test eax, eax
je 0xc8ebbb
push dword [esp + 0x18]
call fcn.00c7106c
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0xc8e993
lea ecx, [esp + 0x2c]
call fcn.00cb7621
push dword [esp + 0x18]
call fcn.00c7106c
mov edx, dword [esp + 0x20]
pop ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00c5766f
mov ecx, dword [esp + 0x18]
push 0x7f
pop edx
cmp dword [esp + 0x24], edx
jne 0xc8e993
mov ecx, dword [esi + 8]
cmp ecx, 2
jbe 0xc8eb4f
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4 - 8]
cmp word [eax + 8], dx
je 0xc8eb4f
inc dword [esp + 0x3c]
mov ecx, edi
push 0x3b
pop eax
mov word [esp + 0x24], ax
or eax, 0xffffffff
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x10]
call fcn.00c57373
jmp 0xc8eb56
mov ecx, esi
call 0xcb0170
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x38]
jle 0xc8e98f
push 5
lea ecx, [esp + 0x2c]
call fcn.00c55f12
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov ecx, dword [ecx]
call fcn.00cb7581
lea eax, [esp + 0x44]
push eax
lea ecx, [edi + 0x50]
call fcn.00cbf835
push dword [esp + 0x14]
call fcn.00c72f95
mov bl, 1
pop ecx
lea ecx, [esp + 0x50]
call fcn.00c57776
lea ecx, [esp + 0x28]
call fcn.00c55efb
jmp 0xc56e7a
mov eax, dword [esp + 0x4c]
mov ecx, edi
push 0xcdf910
push str.Bad_directive_syntax_error
push eax
push dword [ebp + 8]
call fcn.00cafcb1
push dword [esp + 0x18]
call fcn.00c7106c
pop ecx
push dword [esp + 0x14]
call fcn.00c72f95
jmp 0xc8eba3
xor ecx, ecx
mov byte [esp + 0x23], 1
mov word [esi + eax*2 - 2], cx
jmp 0xc56dbb
push esi
mov ecx, edi
call fcn.00cafb07
jmp 0xc56e32
mov eax, dword [esp + 0x18]
mov ecx, edi
push str.Unterminated_string
push eax
push dword [ebp + 0x10]
call fcn.00cafcb1
mov byte [esp + 0x13], bl
jmp 0xc56e47