Function at 0x412010
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49db1f
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x1e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1f4]
mov ebp, dword [esp + 0x1f8]
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x204]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x208]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jbe 0x4120ad
call fcn.00478a25
xor ebx, ebx
mov edi, esi
mov dword [esp + 0x54], edi
mov byte [esp + 0x1b], 1
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
mov dword [esp + 0x1ec], ebx
jmp 0x4120e0
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x4120ed
call fcn.00478a25
cmp edi, esi
je 0x4125b7
cmp edi, dword [ebp + 8]
jb 0x4120ff
call fcn.00478a25
lea edx, [esp + 0xd4]
push edx
call fcn.00440ff0
cmp dword [esp + 0x1b8], ebx
jne 0x4124b3
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x3c]
push eax
lea ebx, [esp + 0xd8]
mov byte [esp + 0x1f0], 2
call fcn.00441c70
mov ebp, eax
mov dword [esp + 0x78], ebp
xor eax, eax
mov edx, vtable.CAUVersion.0
mov ecx, 7
mov dword [esp + 0x7c], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], eax
mov word [esp + 0x84], ax
mov byte [esp + 0x1ec], 4
cmp dword [esp + 0x104], eax
je 0x4124e0
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x412190
call fcn.00478a25
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x41219d
call fcn.00478a25
cmp esi, edi
je 0x412225
cmp esi, dword [ebx + 8]
jb 0x4121af
call fcn.00478a25
cmp dword [esp + 0xec], 8
mov eax, dword [esp + 0xd8]
jae 0x4121c7
lea eax, [esp + 0xd8]
mov edi, dword [esp + 0xe8]
push eax
mov eax, dword [esi + 0x14]
mov ecx, esi
call fcn.0040e760
test eax, eax
jne 0x4121f0
cmp esi, dword [ebx + 8]
jb 0x4121e7
call fcn.00478a25
cmp dword [esi + 0xe4], 1
je 0x412202
cmp esi, dword [ebx + 8]
jb 0x4121fa
call fcn.00478a25
add esi, 0x104
jmp 0x412190
cmp esi, dword [ebx + 8]
jb 0x41220c
call fcn.00478a25
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
add esi, 0x38
push esi
lea ecx, [esp + 0x80]
call eax
jmp 0x412350
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412236
mov eax, dword [ebp + 8]
add eax, 0x84
jmp 0x412239
lea eax, [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412352
mov eax, dword [ebp + 8]
xor edi, edi
xor bl, bl
cmp eax, edi
je 0x412254
add eax, 0xbc
jmp 0x412257
lea eax, [ebp + 0xc]
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xa4]
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
call fcn.00401b70
mov byte [esp + 0x1ec], 5
cmp dword [esp + 0xb4], 8
mov esi, dword [esp + 0xa0]
jae 0x4122a0
lea esi, [esp + 0xa0]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4122b4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov bl, 1
cmp dword [esp + 0xb0], edi
je 0x4122c2
cmp bl, 1
jne 0x41232e
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4122d0
add eax, 0xd8
jmp 0x4122d3
lea eax, [ebp + 0x44]
push 0xffffffffffffffff
mov esi, vtable.CAUVersion.0
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], esi
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], edi
mov word [esp + 0x68], di
call fcn.00401b70
mov byte [esp + 0x1ec], 6
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x80]
call eax
cmp dword [esp + 0x74], 8
mov dword [esp + 0x58], esi
jb 0x41232e
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0045a870
add esp, 4
mov byte [esp + 0x1ec], 4
cmp dword [esp + 0xb4], 8
jb 0x412350
mov edx, dword [esp + 0xa0]
push edx
call fcn.0045a870
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x114]
push edx
call fcn.00412600
add esp, 0x28
cmp dword [esi], 3
jne 0x412537
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov ecx, dword [esp + 0x24]
je 0x412406
mov esi, ecx
sub esi, eax
sar esi, 3
je 0x412406
lea ebx, [esi - 1]
lea edi, [esi*8 - 8]
test eax, eax
je 0x4123cd
sub ecx, eax
sar ecx, 3
cmp ebx, ecx
jb 0x4123d6
call fcn.00478a25
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0xd8]
push edx
add eax, edi
push eax
call fcn.00416120
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub esi, 1
sub edi, 8
sub ebx, 1
test esi, esi
ja 0x4123c0
xor ebx, ebx
cmp dword [esp + 0x98], 8
mov dword [esp + 0x7c], vtable.CAUVersion.0
jb 0x412430
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0045a870
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov byte [esp + 0x1ec], 2
je 0x412469
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x1ec], 1
je 0x41249d
cmp eax, ecx
mov edi, ecx
mov esi, eax
je 0x412494
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
mov ecx, esi
call eax
add esi, 8
cmp esi, edi
jne 0x412480
mov eax, dword [esp + 0x20]
push eax
call fcn.0045a870
add esp, 4
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
xor ebx, ebx
cmp edi, dword [ebp + 8]
jb 0x4124bd
call fcn.00478a25
lea ecx, [esp + 0xd4]
add edi, 0x104
push ecx
mov dword [esp + 0x58], edi
mov byte [esp + 0x1f0], bl
call fcn.00440cf0
jmp 0x4120e0
cmp ebp, eax
mov esi, dword [esp + 0x30]
mov dword [esi], eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], eax
mov word [esp + 0x84], ax
mov byte [esp + 0x1ec], 2
je 0x41251c
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0x1ec], 1
call fcn.00419640
lea ecx, [esp + 0xd4]
push ecx
jmp 0x4125aa
cmp dword [esp + 0x98], 8
mov dword [esi], ebx
mov byte [esp + 0x1b], 0
mov dword [esp + 0x7c], vtable.CAUVersion.0
jb 0x412560
mov edx, dword [esp + 0x84]
push edx
call fcn.0045a870
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov byte [esp + 0x1ec], 2
je 0x412591
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
lea ebx, [esp + 0x1c]
mov byte [esp + 0x1ec], 1
call fcn.00419640
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x1f0], 0
call fcn.00440cf0
cmp dword [esp + 0xd0], 8
jb 0x4125d1
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.0045a870
add esp, 4
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x1e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.00478599
add esp, 0x1dc
ret