Function at 0x10080240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100c7210]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 8]
call fcn.1000ef30
movzx eax, al
test eax, eax
jne 0x10080658
lea ecx, [ebp - 0x18]
call fcn.1001bd40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.1001bd40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.1000ef30
movzx ecx, al
test ecx, ecx
je 0x100802ee
push 0
push 0x100aeb90
lea ecx, [ebp + 8]
call fcn.10024b00
cmp eax, 1
jne 0x100802ee
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.1000ebe0
lea ecx, [ebp - 0x14]
call fcn.10015020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100802ee
lea ecx, [ebp - 0x14]
call fcn.10010380
lea ecx, [ebp - 0x14]
call fcn.1000ef30
movzx eax, al
test eax, eax
je 0x10080436
cmp dword [ebp + 0xc], 0
jne 0x10080436
mov word [ebp - 0x22c], 0
push 0x20a
push 0
lea ecx, [ebp - 0x22a]
push ecx
call fcn.10053730
add esp, 0xc
push 0x104
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10010450
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.1000ecc0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
je 0x100803b5
mov edx, dword [ebp - 0x230]
add edx, 1
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000eeb0
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x254], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x254]
push edx
lea ecx, [ebp - 0x18]
call fcn.1000ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.1000b440
lea ecx, [ebp - 0x18]
call fcn.1000ef30
movzx eax, al
test eax, eax
jne 0x10080436
lea ecx, [ebp - 0x18]
push ecx
call fcn.10080040
add esp, 4
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.10010cf0
add esp, 0xc
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.1000b440
lea ecx, [ebp - 0x14]
call fcn.10015020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10080436
lea ecx, [ebp - 0x14]
call fcn.10010380
lea ecx, [ebp - 0x14]
call fcn.1000ef30
movzx ecx, al
test ecx, ecx
je 0x10080515
lea ecx, [ebp - 0x18]
call fcn.10010380
lea edx, [ebp - 0x23c]
push edx
call fcn.1007ffa0
add esp, 4
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x18]
call fcn.1000ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.1000b440
lea ecx, [ebp - 0x18]
call fcn.1000ef30
movzx edx, al
test edx, edx
jne 0x10080515
lea eax, [ebp - 0x18]
push eax
call fcn.10080040
add esp, 4
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.10010cf0
add esp, 0xc
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x14]
call fcn.1000ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.1000b440
lea ecx, [ebp - 0x14]
call fcn.10015020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10080515
lea ecx, [ebp - 0x14]
call fcn.10010380
lea ecx, [ebp - 0x14]
call fcn.1000ef30
movzx eax, al
test eax, eax
je 0x100805f4
lea ecx, [ebp - 0x18]
call fcn.10010380
lea ecx, [ebp - 0x244]
push ecx
call fcn.1007ff00
add esp, 4
mov dword [ebp - 0x270], eax
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x274], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x274]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x244]
call fcn.1000b440
lea ecx, [ebp - 0x18]
call fcn.1000ef30
movzx ecx, al
test ecx, ecx
jne 0x100805f4
lea edx, [ebp - 0x18]
push edx
call fcn.10080040
add esp, 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.10010cf0
add esp, 0xc
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1000ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.1000b440
lea ecx, [ebp - 0x14]
call fcn.10015020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100805f4
lea ecx, [ebp - 0x14]
call fcn.10010380
lea ecx, [ebp - 0x14]
call fcn.1000ef30
movzx edx, al
test edx, edx
jne 0x10080628
lea ecx, [ebp - 0x14]
call fcn.10015020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10080628
lea ecx, [ebp - 0x14]
call fcn.10015020
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10080640
lea ecx, [ebp + 8]
call fcn.10015020
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.1000b440
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.1000b440
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000b440
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10053547
mov esp, ebp
pop ebp
ret