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

Disassembly:
push 0xffffffffffffffff
push 0x49e8e2
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x100]
mov eax, dword [esp + 0x104]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0xf8], 1
push 7
push str.__for__
lea esi, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00401c20
mov byte [esp + 0xf8], 2
mov eax, dword [edi + 0x5c]
push ebx
push eax
or eax, 0xffffffff
call fcn.004036a0
mov eax, dword [ebp + 0x20]
cmp eax, ebx
jne 0x4078c6
mov byte [esp + 0x1b], bl
jmp 0x4078d8
push eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x64]
call fcn.00456c80
mov byte [esp + 0x1b], al
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x20]
cmp eax, ebx
jne 0x4078e7
xor al, al
jmp 0x4078f5
push eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
call fcn.004547f0
mov cl, byte [esp + 0x1b]
or cl, al
jne 0x407988
cmp dword [esp + 0x78], 8
jb 0x407915
mov edx, dword [esp + 0x64]
push edx
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
je 0x40794c
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
push ecx
call fcn.00402640
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x40797e
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
push ecx
call fcn.00402640
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call fcn.0045a870
add esp, 4
mov eax, 0x12
jmp 0x4080ea
lea eax, [esp + 0x50]
push eax
call fcn.0043aaf0
mov byte [esp + 0xf8], 3
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x4079a9
call fcn.00478a25
mov ebp, esi
jmp 0x4079b2
xor ebx, ebx
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x20], esi
jbe 0x4079c1
call fcn.00478a25
cmp ebp, esi
je 0x407c8e
push 0xf
push str.auid_component_
lea esi, [esp + 0xa0]
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
call fcn.00401c20
mov ecx, dword [esp + 0x40]
mov byte [esp + 0xf8], 4
mov eax, dword [ecx + 0x5c]
add eax, 0x54
push ebx
push eax
or eax, 0xffffffff
call fcn.004036a0
push 1
push 0x4a9e14
mov ecx, esi
call fcn.004035d0
cmp ebp, dword [esp + 0x24]
jb 0x407a2b
call fcn.00478a25
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x407a43
lea eax, [esp + 0x9c]
mov ebx, dword [esp + 0xac]
push eax
xor eax, eax
mov edx, ebp
call fcn.0040e5d0
cmp eax, 0xffffffff
je 0x407c55
cmp ebp, dword [esp + 0x24]
jb 0x407a68
call fcn.00478a25
mov edx, dword [esp + 0x48]
push edx
mov ebx, ebp
call fcn.00441c70
mov edi, eax
mov dword [esp + 0x3c], edi
xor ebx, ebx
cmp edi, ebx
je 0x407c3f
mov eax, 7
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
mov byte [esp + 0xf8], 8
cmp dword [edi + 8], ebx
je 0x407ae2
mov eax, dword [edi + 8]
add eax, 0xbc
jmp 0x407ae5
lea eax, [edi + 0xc]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x84]
call fcn.00401b70
cmp dword [esp + 0x94], 8
mov esi, dword [esp + 0x80]
jae 0x407b0c
lea esi, [esp + 0x80]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407bbb
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [edi + 8]
cmp esi, ebx
je 0x407b33
mov edx, esi
add edx, 0x84
jmp 0x407b36
lea edx, [edi + 0xc]
push str.__for__
mov ebx, 7
xor eax, eax
call fcn.0040e5d0
test esi, esi
je 0x407b55
mov ecx, esi
add ecx, 0x84
jmp 0x407b58
lea ecx, [edi + 0xc]
cmp dword [ecx + 0x18], 8
jb 0x407b63
mov ecx, dword [ecx + 4]
jmp 0x407b66
add ecx, 4
push eax
push ecx
lea esi, [esp + 0xd8]
call fcn.00401c20
cmp dword [edi + 8], 0
je 0x407b84
mov eax, dword [edi + 8]
add eax, 0xd8
jmp 0x407b87
lea eax, [edi + 0x44]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xbc]
call fcn.00401b70
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0043b2b0
xor ebx, ebx
mov esi, 8
cmp dword [esp + 0xcc], esi
jb 0x407bd9
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x94], esi
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
jb 0x407c0c
mov edx, dword [esp + 0x80]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xe8], esi
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x407c3f
mov eax, dword [esp + 0xd4]
push eax
call fcn.0045a870
add esp, 4
cmp edi, ebx
mov byte [esp + 0xf8], 4
je 0x407c55
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
cmp ebp, dword [esp + 0x24]
jb 0x407c60
call fcn.00478a25
add ebp, 0x1c
mov byte [esp + 0xf8], 3
cmp dword [esp + 0xb0], 8
jb 0x4079b0
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0045a870
add esp, 4
jmp 0x4079b0
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
jbe 0x407c9d
call fcn.00478a25
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
mov ebp, esi
mov edi, eax
jmp 0x407cb2
xor ebx, ebx
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
jbe 0x407cc1
call fcn.00478a25
cmp edi, ebx
je 0x407ccd
lea edx, [esp + 0x2c]
cmp edi, edx
je 0x407cd2
call fcn.00478a25
cmp ebp, esi
je 0x407f91
push 0xf
push str.auid_component_
lea esi, [esp + 0xa0]
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
call fcn.00401c20
mov eax, dword [esp + 0x40]
mov byte [esp + 0xf8], 9
mov eax, dword [eax + 0x5c]
add eax, 0x54
push ebx
push eax
or eax, 0xffffffff
call fcn.004036a0
cmp edi, ebx
jne 0x407d2c
call fcn.00478a25
cmp ebp, dword [edi + 8]
jb 0x407d36
call fcn.00478a25
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x407d4e
lea eax, [esp + 0x9c]
mov ebx, dword [esp + 0xac]
push eax
xor eax, eax
mov edx, ebp
call fcn.0040e5d0
cmp eax, 0xffffffff
je 0x407f59
cmp ebp, dword [edi + 8]
jb 0x407d72
call fcn.00478a25
mov esi, dword [esp + 0x44]
mov ecx, ebp
call fcn.004418f0
mov edi, eax
mov dword [esp + 0x3c], edi
xor ebx, ebx
cmp edi, ebx
je 0x407f3f
mov eax, 7
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
mov byte [esp + 0xf8], 0xd
cmp dword [edi + 8], ebx
je 0x407deb
mov eax, dword [edi + 8]
add eax, 0xc4
jmp 0x407df1
lea eax, [edi + 0xc8]
push 0xffffffffffffffff
push ebx
add eax, 4
lea ecx, [esp + 0x84]
call fcn.00401b70
cmp dword [esp + 0x94], 8
mov esi, dword [esp + 0x80]
jae 0x407e1b
lea esi, [esp + 0x80]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407ebb
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [edi + 8]
cmp esi, ebx
mov edx, esi
jne 0x407e3d
lea edx, [edi + 0xc]
push str.__for__
mov ebx, 7
xor eax, eax
call fcn.0040e5d0
test esi, esi
mov ecx, esi
jne 0x407e57
lea ecx, [edi + 0xc]
cmp dword [ecx + 0x18], 8
jb 0x407e62
mov ecx, dword [ecx + 4]
jmp 0x407e65
add ecx, 4
push eax
push ecx
lea esi, [esp + 0xd8]
call fcn.00401c20
cmp dword [edi + 8], 0
je 0x407e81
mov eax, dword [edi + 8]
add eax, 0x3c
jmp 0x407e84
lea eax, [edi + 0x28]
push 0xffffffffffffffff
push 0
add eax, 4
lea ecx, [esp + 0xbc]
call fcn.00401b70
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.0043b2b0
xor ebx, ebx
mov esi, 8
cmp dword [esp + 0xcc], esi
jb 0x407ed9
mov edx, dword [esp + 0xb8]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x94], esi
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
jb 0x407f0c
mov eax, dword [esp + 0x80]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xe8], esi
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x407f3f
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0045a870
add esp, 4
cmp edi, ebx
mov byte [esp + 0xf8], 9
je 0x407f55
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov edi, dword [esp + 0x48]
cmp ebp, dword [edi + 8]
jb 0x407f63
call fcn.00478a25
add ebp, 0x1c
mov byte [esp + 0xf8], 3
cmp dword [esp + 0xb0], 8
jb 0x407cb0
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0045a870
add esp, 4
jmp 0x407cb0
cmp dword [esp + 0x5c], ebx
jne 0x408014
lea ecx, [esp + 0x50]
mov byte [esp + 0xf8], 2
call fcn.0043abc0
cmp dword [esp + 0x78], 8
jb 0x407fbc
mov edx, dword [esp + 0x64]
push edx
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
je 0x407ff3
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
push ecx
call fcn.00402640
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x40797e
mov ecx, dword [esp + 0x3c]
jmp 0x407964
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x5c]
mov ebp, 8
cmp dword [eax + 0x50], ebp
jb 0x40802a
mov edi, dword [eax + 0x3c]
jmp 0x40802d
lea edi, [eax + 0x3c]
lea ecx, [esp + 0x50]
push ecx
call fcn.0043ac50
mov esi, eax
call fcn.004532b0
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
cmp esi, ebx
mov byte [esp + 0x1b], al
je 0x40805b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xf8], 2
call fcn.0043abc0
cmp byte [esp + 0x1b], bl
jne 0x4080af
cmp dword [esp + 0x78], ebp
jb 0x408085
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0045a870
add esp, 4
lea esi, [esp + 0x1c]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.004019a0
lea esi, [esp + 0x2c]
call fcn.004019a0
mov eax, 0x14
jmp 0x4080ea
cmp dword [esp + 0x78], ebp
jb 0x4080c2
mov edx, dword [esp + 0x64]
push edx
call fcn.0045a870
add esp, 4
lea esi, [esp + 0x1c]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.004019a0
lea esi, [esp + 0x2c]
call fcn.004019a0
mov eax, 0xc8
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00478599
add esp, 0xe8
ret 8