Function at 0x40326c
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 [0x4d35c8]
push ebx
push esi
inc eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [0x4d35c8], eax
push edi
cmp eax, 0x30
jge 0x4433b5
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.0042015b
pop ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], eax
call fcn.00406903
lea ecx, [esp + 0x78]
call fcn.0040ae03
lea ecx, [esp + 0x60]
call fcn.00406903
lea ecx, [esp + 0x60]
call fcn.00406903
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x60]
mov eax, 0x8000
push eax
push edi
mov dword [esp + 0x90], eax
call fcn.00405e02
test al, al
je 0x4437e7
lea ecx, [esp + 0x60]
call fcn.00405c7b
lea ecx, [esp + 0x60]
call fcn.00405abf
lea ecx, [esp + 0x60]
call fcn.00405aa8
test byte [esp + 0x88], 3
jne 0x4433cf
lea ecx, [esp + 0xc0]
call fcn.0040ae03
lea ecx, [esp + 0xc0]
call fcn.0040321c
lea ecx, [esp + 0xb0]
call fcn.0040ae03
lea edx, [esp + 0xb0]
mov ecx, edi
call fcn.00403ff7
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x58]
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x60]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x5c], 0x18
push eax
call fcn.0040324f
push ebx
push esi
push edi
lea ecx, [esp + 0x6c]
call fcn.00405ba7
cmp dword [esp + 0xa8], 0x21335541
je 0x443430
lea ecx, [esp + 0x38]
call fcn.0040ae03
lea ecx, [esp + 0x28]
call fcn.0040ae03
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0xbc]
call fcn.00403e34
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
call fcn.00406aa4
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.0040ac28
lea ecx, [esp + 0x38]
call fcn.0040ac28
push 0x2000
call fcn.0042015b
pop ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00403966
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x1e], 1
jne 0x40352d
push ecx
push esi
lea ecx, [esp + 0x68]
call fcn.00409d04
test al, al
je 0x40352d
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.00403853
push esi
call fcn.004037b3
push esi
test al, al
je 0x4437ca
call fcn.00403778
push esi
mov byte [esp + 0x23], bl
call fcn.00424cb3
mov dword [esp + 0x28], eax
pop ecx
cmp eax, 2
jle 0x40348b
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.00426715
pop ecx
test eax, eax
jne 0x4035af
cmp byte [esp + 0x20], 1
je 0x4437ab
push dword [esp + 0xb0]
lea ecx, [esp + 0x3c]
call fcn.0040a1d4
lea eax, [esp + 0x60]
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004035d5
mov ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
dec dword [eax]
mov eax, dword [esp + 0x44]
cmp dword [eax], ebx
jne 0x4034ec
push dword [esp + 0x38]
call fcn.00420164
pop ecx
push 4
push dword [esp + 0x48]
call fcn.0042011d
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4035c4
cmp ecx, 1
jle 0x4035c8
cmp ecx, 3
jg 0x4437b8
push dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.004038a0
cmp byte [esp + 0x13], 1
mov al, byte [esp + 0x1f]
mov byte [esp + 0x20], al
je 0x403415
lea ecx, [esp + 0x60]
call fcn.00406903
push dword [esp + 0xc0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x5c]
mov bl, byte [esp + 0x13]
sub dword [eax], 1
jne 0x403561
push 4
push eax
call fcn.0042011d
push esi
call fcn.00420164
add esp, 0xc
lea ecx, [esp + 0xb0]
call fcn.0040ac28
lea ecx, [esp + 0xc0]
call fcn.0040ac28
lea ecx, [esp + 0x60]
call fcn.00406903
lea ecx, [esp + 0x78]
call fcn.0040ac28
lea ecx, [esp + 0x60]
call fcn.00406903
push dword [esp + 0x64]
call fcn.00420164
pop ecx
dec dword [0x4d35c8]
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 0x40348b
jmp 0x44379a
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x40351a
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.00469f4f
xor bl, bl
jmp 0x40359e
test byte [esp + 0x88], 1
je 0x4433e7
mov eax, dword [esp + 0x70]
or eax, dword [esp + 0x74]
jne 0x40332d
cmp dword [esp + 0x8c], 3
jne 0x4433fa
push 3
push 0x4c460c
jmp 0x443422
cmp dword [esp + 0x8c], 5
jne 0x44340d
push 2
push 0x4c4614
jmp 0x443422
cmp dword [esp + 0x8c], 7
jne 0x40332d
push 2
push 0x4c4610
lea ecx, [esp + 0x68]
call fcn.0046d2e4
jmp 0x40332d
cmp dword [esp + 0xac], 0x36304145
jne 0x4033a2
lea ecx, [esp + 0x60]
call fcn.00406903
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x98]
push 2
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
push dword [eax]
mov byte [esp + 0xb4], bl
call fcn.004054de
test eax, eax
jne 0x44377e
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.004733e2
lea ecx, [esp + 0x98]
mov esi, eax
call fcn.0040554c
test esi, esi
jne 0x44377e
mov eax, dword [esp + 0x14]
push 4
pop esi
push 0x10
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
or eax, 0xffffffff
mov word [esp + 0x34], ax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0042012b
mov edi, eax
or eax, 0xffffffff
pop ecx
push 5
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], edi
mov dword [edi], 0x49dc38
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.0040ab1f
mov eax, dword [esp + 0x48]
mov ecx, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.0040aa39
mov edi, dword [esp + 0x18]
xor eax, eax
inc eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x48], eax
jl 0x4436eb
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 + 0x5c], eax
call fcn.0040ab1f
cmp word [esp + 0x30], 0xf
ja 0x443561
mov eax, dword [esp + 0x14]
add eax, esi
add esi, 4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x44367d
lea ecx, [esp + 0x28]
call fcn.004712bb
test al, al
je 0x443589
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 0x44367d
lea ecx, [esp + 0x28]
call fcn.004712a7
test al, al
je 0x4435aa
mov eax, dword [esp + 0x14]
add eax, esi
add esi, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0x44367d
lea ecx, [esp + 0x28]
call fcn.0041e546
test al, al
je 0x44367d
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.00469d32
mov esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], esi
push esi
cmp eax, 0x31
jne 0x443606
lea ecx, [esp + 0xd4]
call fcn.0040a1d4
mov ecx, dword [edi + 4]
push dword [esp + 0xd0]
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0xd0]
mov esi, eax
call fcn.0040ac28
push 1
jmp 0x443632
cmp eax, 0x30
jne 0x443645
lea ecx, [esp + 0xe4]
call fcn.0040a1d4
lea ecx, [esp + 0xe0]
call fcn.00406cd7
lea ecx, [esp + 0xe0]
mov esi, eax
call fcn.0040ac28
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040ab1f
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
jmp 0x443672
cmp eax, 0x37
jne 0x443669
mov ecx, edi
call fcn.00469c61
test eax, eax
je 0x443753
push esi
call fcn.00420164
mov esi, dword [esp + 0x1c]
pop ecx
jmp 0x443529
lea ecx, [esp + 0x2c]
call fcn.00471243
push esi
call fcn.00420164
mov esi, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
call fcn.0040aa39
cmp dword [esp + 0x58], 0x7f
jne 0x443529
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 8]
cmp edx, 2
jbe 0x4436d3
mov eax, dword [ecx + 4]
push 0x7f
mov eax, dword [eax + edx*4 - 8]
pop edx
cmp word [eax + 8], dx
je 0x4436d3
inc dword [esp + 0x50]
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.004038a0
jmp 0x4436d8
call fcn.0046a2ab
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x48]
jle 0x443529
push 5
lea ecx, [esp + 0x2c]
call fcn.0040ab1f
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
call fcn.004711b5
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0x50]
call fcn.00464868
push dword [esp + 0x14]
call fcn.00424cce
mov bl, 1
pop ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x49dc38
call fcn.00404d00
push dword [esp + 0x3c]
call fcn.00420164
pop ecx
lea ecx, [esp + 0x28]
call fcn.0047119d
jmp 0x403561
mov eax, dword [esp + 0x4c]
mov ecx, edi
push 0x49dc1c
push str.Bad_directive_syntax_error
push eax
push dword [ebp + 8]
call fcn.00469f4f
push esi
call fcn.00420164
pop ecx
push dword [esp + 0x14]
call fcn.00424cce
jmp 0x443729
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.00469f4f
jmp 0x403561
xor ecx, ecx
mov byte [esp + 0x1f], 1
mov word [esi + eax*2 - 2], cx
jmp 0x40348b
push esi
mov ecx, edi
call fcn.00469bfa
jmp 0x40351a
cmp ecx, 4
jne 0x4035c8
mov byte [esp + 0x1e], bl
jmp 0x4035c8
mov eax, dword [esp + 0x18]
mov ecx, edi
push str.Unterminated_string
push eax
push dword [ebp + 0x10]
call fcn.00469f4f
mov byte [esp + 0x13], bl
jmp 0x40352d
push dword [ebp + 0x14]
mov ecx, esi
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00469f4f
jmp 0x403579