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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428c21
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x43a034]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x43a034]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [0x43e608]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0xcc], 0x43e608
mov dword [0x43e608], eax
xor ebx, ebx
mov dword [esp + 0x108], ebx
cmp eax, 0x30
jl 0x40b384
push edi
push str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
push dword [ebp + 0x18]
push ecx
mov ecx, esi
call fcn.0040a67e
dec dword [0x43e608]
xor al, al
jmp 0x40bacc
mov eax, ebx
mov byte [esp + 0x13], 1
push 0x10000
mov dword [esp + 0x1c], eax
mov byte [esp + 0x27], 1
mov byte [esp + 0x28], bl
mov dword [esp + 0x68], ebx
call fcn.00412701
pop ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], eax
call fcn.0040e240
lea ecx, [esp + 0x7c]
mov byte [esp + 0x108], 1
call fcn.004016e1
lea ecx, [esp + 0x64]
call fcn.0040e240
push ecx
push dword [esp + 0x44]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x110], 2
call fcn.0040dcc0
test al, al
jne 0x40b42d
push edi
push str.Error_opening_the_file
push dword [ebp + 0x18]
mov ecx, esi
push dword [esp + 0x20]
call fcn.0040a67e
lea ecx, [esp + 0x64]
call fcn.0040e240
lea ecx, [esp + 0x7c]
call fcn.004015bf
lea ecx, [esp + 0x64]
call fcn.0040e240
push dword [esp + 0x68]
call fcn.00412752
dec dword [0x43e608]
xor al, al
jmp 0x40bacb
lea ecx, [esp + 0xac]
call fcn.004016e1
lea ecx, [esp + 0xac]
mov byte [esp + 0x108], 3
call fcn.0040ea8c
lea ecx, [esp + 0x9c]
call fcn.004016e1
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x9c]
mov byte [esp + 0x108], 4
call fcn.0040eb22
mov edi, dword [esp + 0x74]
lea eax, [esp + 0xe0]
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x64]
push 0x18
push eax
call fcn.0040e371
push ebx
push esi
push edi
lea ecx, [esp + 0x70]
call fcn.0040e268
cmp dword [esp + 0xf0], 0x21335541
jne 0x40b885
cmp dword [esp + 0xf4], 0x36304145
jne 0x40b885
lea ecx, [esp + 0x64]
call fcn.0040e240
mov eax, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
push dword [eax]
mov byte [esp + 0xfc], bl
call fcn.00402008
test eax, eax
je 0x40b525
push dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [esp + 0x20]
call fcn.0040a67e
lea ecx, [esp + 0x9c]
call fcn.004015bf
lea ecx, [esp + 0xac]
call fcn.004015bf
jmp 0x40b3fc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0xec]
call fcn.004024fb
lea ecx, [esp + 0xe0]
test eax, eax
je 0x40b54e
call fcn.00402183
jmp 0x40b4ef
call fcn.00402183
mov eax, dword [esp + 0x18]
push 4
pop edx
mov dword [esp + 0x14], edx
mov esi, dword [eax]
or eax, 0xffffffff
mov word [esp + 0x30], ax
xor eax, eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x32], ax
mov dword [esp + 0x54], 0x4368e0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
push 0x10
mov byte [esp + 0x10c], 6
call fcn.00412701
mov edi, eax
pop ecx
test edi, edi
je 0x40b5ae
mov dword [edi], 0x4368e0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
jmp 0x40b5b0
mov edi, ebx
or eax, 0xffffffff
mov dword [esp + 0x3c], edi
push 5
lea ecx, [esp + 0x2c]
mov word [esp + 0x36], ax
call fcn.0040db06
lea eax, [esp + 0x28]
mov dword [esp + 0x28], esi
push eax
mov ecx, edi
call fcn.0040c7d3
xor eax, eax
mov esi, ebx
inc eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], eax
cmp dword [esp + 0x4c], eax
jl 0x40b80d
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, ecx
inc ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x28]
mov al, byte [eax]
movzx eax, al
push eax
mov dword [esp + 0x4c], eax
call fcn.0040db06
lea ecx, [esp + 0x28]
call fcn.0040db75
test al, al
je 0x40b63d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, edx
add edx, 4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x40b772
lea ecx, [esp + 0x28]
call fcn.0040db8a
test al, al
je 0x40b669
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
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 0x40b772
lea ecx, [esp + 0x28]
call fcn.0040dba0
test al, al
je 0x40b68e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, edx
add edx, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0x40b772
lea ecx, [esp + 0x28]
call fcn.0040db5f
test al, al
je 0x40b776
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call fcn.0040bdae
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
push eax
cmp ecx, 0x31
jne 0x40b6f8
lea ecx, [esp + 0xd4]
call fcn.00403a9f
mov byte [esp + 0x108], 7
mov ecx, dword [esi + 0x18]
push dword [esp + 0xd0]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x108], 6
mov esi, eax
call fcn.004015bf
push 1
jmp 0x40b725
cmp ecx, 0x30
jne 0x40b734
lea ecx, [esp + 0xc0]
call fcn.00403a9f
lea eax, [esp + 0xbc]
push eax
call fcn.0040d314
lea ecx, [esp + 0xbc]
mov esi, eax
call fcn.004015bf
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040db06
mov dword [esp + 0x28], esi
jmp 0x40b764
cmp ecx, 0x37
jne 0x40b75b
mov ecx, esi
call fcn.0040be12
test eax, eax
je 0x40b85f
push dword [esp + 0x14]
call fcn.00412752
pop ecx
mov ecx, dword [esp + 0x24]
jmp 0x40b5f6
lea ecx, [esp + 0x2c]
call fcn.0040da69
push dword [esp + 0x14]
call fcn.00412752
mov edx, dword [esp + 0x28]
pop ecx
mov dword [esp + 0x14], edx
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.0040c7d3
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0x7f
pop edx
cmp dword [esp + 0x48], edx
jne 0x40b5f6
mov ecx, dword [edi + 8]
cmp ecx, 2
jbe 0x40b7cd
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*4 - 8]
cmp word [eax + 8], dx
je 0x40b7cd
inc dword [esp + 0x38]
mov ecx, esi
push 0x3b
pop eax
mov word [esp + 0x24], ax
or eax, 0xffffffff
push eax
lea eax, [esp + 0x28]
push eax
push dword [esi + 0x24]
call fcn.0040aa8c
jmp 0x40b7f6
dec ecx
mov dword [edi + 8], ecx
mov eax, dword [edi + 4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40b7e9
mov ecx, esi
call fcn.0040d9b8
push esi
call fcn.00412752
pop ecx
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4], ebx
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x4c]
jle 0x40b5f2
mov esi, dword [esp + 0x38]
push 5
lea ecx, [esp + 0x2c]
call fcn.0040db06
mov ecx, dword [edi + 4]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], esi
mov ecx, dword [ecx]
call fcn.0040d9d8
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea ecx, [ecx + 0x64]
call fcn.00403bcb
mov bl, 1
push dword [esp + 0x18]
call fcn.004135be
pop ecx
lea ecx, [esp + 0x54]
call fcn.0040c7ba
lea ecx, [esp + 0x28]
call fcn.0040d9b8
jmp 0x40ba87
mov eax, dword [esp + 0x44]
mov ecx, esi
push 0x432194
push str.Bad_directive_syntax_error
push eax
push dword [esp + 0x4c]
call fcn.0040a67e
push dword [esp + 0x14]
call fcn.00412752
pop ecx
jmp 0x40b83e
lea ecx, [esp + 0x54]
call fcn.004016e1
lea ecx, [esp + 0x28]
mov byte [esp + 0x108], 8
call fcn.004016e1
push ecx
push ecx
lea eax, [esp + 0x30]
mov byte [esp + 0x110], 9
push eax
lea edx, [esp + 0x60]
lea ecx, [esp + 0xa8]
call fcn.0040e7af
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x54]
push eax
call fcn.00408cc0
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.004015bf
lea ecx, [esp + 0x54]
mov byte [esp + 0x108], 4
call fcn.004015bf
push 0x2000
call fcn.00412701
pop ecx
push eax
lea ecx, [esp + 0x50]
call fcn.0040290b
mov byte [esp + 0x108], 0xa
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x23], 1
jne 0x40ba57
push ecx
push esi
lea ecx, [esp + 0x6c]
call fcn.0040e005
test al, al
je 0x40ba57
mov eax, dword [esp + 0x18]
inc eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.0040ae83
push esi
call fcn.0040aec1
push esi
test al, al
je 0x40baf2
call fcn.0040ae4c
push esi
mov byte [esp + 0x26], bl
call fcn.00412e3b
mov dword [esp + 0x40], eax
pop ecx
cmp eax, 2
jle 0x40b9a2
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.00416243
pop ecx
test eax, eax
je 0x40b9a2
mov eax, dword [esp + 0x3c]
cmp word [esi + eax*2 - 2], 0x5f
jne 0x40b9a2
xor ecx, ecx
mov byte [esp + 0x22], 1
mov word [esi + eax*2 - 2], cx
cmp byte [esp + 0x24], 1
jne 0x40b9b6
push esi
mov ecx, edi
call fcn.0040aafe
jmp 0x40ba42
push dword [esp + 0x9c]
lea ecx, [esp + 0xc0]
call fcn.00403a9f
lea eax, [esp + 0x64]
mov byte [esp + 0x108], 0xb
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
lea eax, [esp + 0xc4]
push eax
push esi
call fcn.0040bb0c
lea ecx, [esp + 0xbc]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x108], 0xa
call fcn.004015bf
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40ba36
cmp eax, 1
jle 0x40ba3a
cmp eax, 3
jle 0x40ba20
cmp eax, 4
jne 0x40ba3a
mov byte [esp + 0x23], bl
jmp 0x40ba3a
push dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x24], eax
call fcn.0040aa8c
jmp 0x40ba42
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp byte [esp + 0x22], 1
sete byte [esp + 0x24]
cmp byte [esp + 0x13], 1
je 0x40b918
mov bl, byte [esp + 0x13]
lea ecx, [esp + 0x64]
call fcn.0040e240
push dword [esp + 0xac]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x50]
dec dword [eax]
jne 0x40ba87
push eax
call fcn.00412752
pop ecx
push esi
call fcn.00412752
pop ecx
lea ecx, [esp + 0x9c]
call fcn.004015bf
lea ecx, [esp + 0xac]
call fcn.004015bf
lea ecx, [esp + 0x64]
call fcn.0040e240
lea ecx, [esp + 0x7c]
call fcn.004015bf
lea ecx, [esp + 0x64]
call fcn.0040e240
push dword [esp + 0x68]
call fcn.00412752
dec dword [0x43e608]
mov al, bl
pop ecx
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004126d0
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x1c]
mov ecx, edi
push str.Unterminated_string
push eax
push dword [esp + 0x20]
call fcn.0040a67e
jmp 0x40ba5b