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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106e4
call fcn.0042fa80
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 0x473407
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.00406a82
mov edi, dword [ebp + 8]
push 0x2000
push edi
lea ecx, [esp + 0xa0]
call fcn.00406741
test al, al
je 0x473421
lea ecx, [esp + 0xd0]
call fcn.0040dc00
lea ecx, [esp + 0xd0]
call fcn.004046ac
lea ecx, [esp + 0x88]
call fcn.0040dc00
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.00404ebf
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.0041eda8
push ebx
push esi
push edi
lea ecx, [esp + 0xa4]
call fcn.004068bf
cmp dword [esp + 0x60], 0x21335541
je 0x47343b
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.00421fcc
add esp, 0x14
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x6f4]
push eax
call fcn.00420ef3
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x6fc]
push eax
call fcn.00420ec4
add esp, 0x10
lea eax, [esp + 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x2000
call fcn.0041f6ba
pop ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00402626
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x23], 1
jne 0x40747a
push ecx
push esi
lea ecx, [esp + 0xa0]
call fcn.0040c633
test al, al
je 0x40747a
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.004077d4
push esi
call fcn.00407821
push esi
test al, al
je 0x4737da
call fcn.004078b2
push esi
mov byte [esp + 0x26], bl
call fcn.00420eab
pop ecx
mov dword [esp + 0x34], eax
cmp eax, 2
jle 0x4073f1
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.004218a0
pop ecx
test eax, eax
jne 0x4074e3
cmp byte [esp + 0x24], 1
je 0x4737cd
push dword [esp + 0x88]
lea ecx, [esp + 0x6c]
call fcn.0040cf2d
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.00407623
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], eax
call fcn.0040126c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40750e
cmp eax, 1
jle 0x407501
cmp eax, 3
jg 0x4074f8
push dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
push esi
push eax
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.004078eb
cmp byte [esp + 0x22], 1
sete byte [esp + 0x24]
cmp byte [esp + 0x13], 1
je 0x407378
lea ecx, [esp + 0x98]
call fcn.00406acf
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.00406724
lea ecx, [esp + 0x88]
call fcn.0040126c
lea ecx, [esp + 0xd0]
call fcn.0040126c
lea ecx, [esp + 0x98]
call fcn.00406aa5
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 0x4073f1
jmp 0x4737bc
cmp eax, 4
jne 0x407501
mov byte [esp + 0x23], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x407465
mov byte [esp + 0x13], bl
jmp 0x407501
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.00442352
xor bl, bl
jmp 0x4074d2
push dword [ebp + 0x14]
mov ecx, esi
push str.Error_opening_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00442352
jmp 0x4074c6
cmp dword [esp + 0x64], 0x36304145
jne 0x4072f7
lea ecx, [esp + 0x98]
call fcn.00406acf
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.004050a9
test eax, eax
jne 0x4734a4
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.0044c26e
lea ecx, [esp + 0x50]
test eax, eax
je 0x4734c0
call fcn.00405114
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.00442352
jmp 0x4074ae
call fcn.00405114
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], 0x49dd7c
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.0041f6ba
mov esi, eax
pop ecx
mov dword [esp + 0x3c], esi
test esi, esi
je 0x47351e
mov dword [esi], 0x49dd7c
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x473524
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.0040d839
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x2c], edi
call fcn.0040d739
xor eax, eax
inc eax
cmp edi, eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], eax
jl 0x47373c
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.0040d839
lea ecx, [esp + 0x28]
call fcn.00449b9c
test al, al
je 0x4735ab
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 0x4736cb
lea ecx, [esp + 0x28]
call fcn.00449b86
test al, al
je 0x4735d7
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 0x4736cb
lea ecx, [esp + 0x28]
call fcn.00449b70
test al, al
je 0x4735fc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, edx
add edx, 8
fld qword [eax]
fstp qword [esp + 0x28]
jmp 0x4736cb
lea ecx, [esp + 0x28]
call fcn.0041e1aa
test al, al
je 0x4736cf
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call fcn.004422ee
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push eax
cmp ecx, 0x31
jne 0x473656
lea ecx, [esp + 0xe4]
call fcn.0040cf2d
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.0040126c
push 1
jmp 0x47367a
cmp ecx, 0x30
jne 0x47368d
lea ecx, [esp + 0x6c]
call fcn.0040cf2d
lea eax, [esp + 0x68]
push eax
call fcn.0040a03a
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.0040126c
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040d839
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x3c]
jmp 0x4736bd
cmp ecx, 0x37
jne 0x4736b4
mov ecx, edi
call fcn.0044220f
test eax, eax
je 0x47378e
push dword [esp + 0x18]
call fcn.0041f72e
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x473566
lea ecx, [esp + 0x2c]
call fcn.00449b03
push dword [esp + 0x18]
call fcn.0041f72e
mov edx, dword [esp + 0x20]
pop ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.0040d739
mov ecx, dword [esp + 0x18]
push 0x7f
pop edx
cmp dword [esp + 0x24], edx
jne 0x473566
mov ecx, dword [esi + 8]
cmp ecx, 2
jbe 0x473722
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4 - 8]
cmp word [eax + 8], dx
je 0x473722
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.004078eb
jmp 0x473729
mov ecx, esi
call fcn.0044286d
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x34]
jle 0x473562
push 5
lea ecx, [esp + 0x2c]
call fcn.0040d839
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.00449a63
lea eax, [esp + 0x44]
push eax
lea ecx, [edi + 0x50]
call fcn.00442892
push dword [esp + 0x14]
call fcn.00421e6d
mov bl, 1
pop ecx
lea ecx, [esp + 0x78]
call fcn.0040711e
lea ecx, [esp + 0x28]
call fcn.0041e193
jmp 0x4074ae
mov eax, dword [esp + 0x40]
push 0x49dbc8
push str.Bad_directive_syntax_error
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00442352
push dword [esp + 0x18]
call fcn.0041f72e
pop ecx
push dword [esp + 0x14]
call fcn.00421e6d
jmp 0x473776
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov byte [esp + 0x22], 1
jmp 0x4073f1
push esi
mov ecx, edi
call fcn.004421a8
jmp 0x407465
mov eax, dword [esp + 0x18]
push str.Unterminated_string
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00442352
mov byte [esp + 0x13], bl
jmp 0x40747a