Function at 0x101591c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov eax, 0x2508
lea ebp, [esp - 0x58]
call fcn.0102c870
push ebx
push esi
mov esi, dword [ebp + 0x64]
mov eax, dword [esi + 0xc]
push edi
xor ebx, ebx
cmp eax, 3
push 6
pop edi
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], edi
je 0x1015996
cmp eax, 1
je 0x1015996
mov eax, dword [ebp + 0x6c]
cmp dword [eax], ebx
jne 0x1015e43
mov eax, dword [0x103e874]
mov ecx, dword [eax]
lea edx, [ebp + 0x4c]
push edx
lea edx, [esi + 0x180]
push edx
push eax
call dword [ecx + 4]
test eax, eax
jl 0x1015e43
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x10159f2
push dword [ebp + 0x4c]
mov ecx, eax
call fcn.01006e99
mov dword [ebp + 0x64], eax
jmp 0x10159f5
push 0x108ce98
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x1002bf0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1015e43
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.01007b53
mov eax, dword [ebp + 0x6c]
cmp dword [eax], ebx
jne 0x1015e43
mov eax, dword [ebp + 0x40]
jmp 0x1015962
mov dword [ebp + 0x64], ebx
cmp dword [esi + 0x30], ebx
jne 0x1015e35
cmp dword [esi + 0x2c], ebx
jne 0x1015e35
mov eax, dword [esi + 0xc]
xor ecx, ecx
inc ecx
cmp eax, edi
mov dword [esi + 0x30], ecx
je 0x1015a1d
cmp eax, 3
je 0x1015a1d
cmp eax, ecx
jne 0x1015a60
cmp dword [ebp + 0x7c], ebx
jne 0x1015bb2
cmp dword [0x103ed88], ebx
jne 0x1015bb2
lea eax, [esi + 0xe0]
push eax
push 0x100fcf8
push dword [0x103ed90]
push 0x828
push dword [0x103d7d0]
call dword [sym.imp.SHLWAPI.dll_Ordinal_59]
cmp eax, edi
mov dword [ebp + 0x44], eax
jne 0x1015bb2
lea edx, [ebp + 0x50]
push edx
push 0x824
lea edx, [ebp - 0x1468]
push edx
push ebx
jmp 0x1015b9f
test byte [ebp + 0x50], 2
je 0x1015b27
push 0x1045090
lea eax, [ebp - 0x24b0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x1002bec
lea eax, [ebp - 0x24b0]
push eax
call edi
lea eax, [ebp - 0x1468]
push eax
lea eax, [ebp - 0x24b0]
push eax
call edi
lea edi, [ebp - 0x1468]
push edi
push 0x108ce98
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 4], ebx
je 0x1015b82
push 0x1002bdc
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1015b82
mov edi, dword [ebp + 0x78]
push edi
push dword [esi + 4]
lea eax, [esi + 0xe0]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x24b0]
push eax
push dword [0x103ed90]
call fcn.0100fe0e
test eax, eax
je 0x1015b5c
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov eax, dword [ebp + 0x6c]
mov dword [eax], 1
jmp 0x1015b79
lea eax, [ebp - 0x1468]
push eax
lea eax, [ebp - 0x24b0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x2f
push ebx
lea eax, [ebp - 0x1468]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, ebx
je 0x1015ab6
inc edi
inc edi
jmp 0x1015abc
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x1015b69
cmp eax, 1
jne 0x1015b79
push ebx
mov dword [esi + 0xc], 6
push dword [edi]
push esi
call fcn.010158b2
mov eax, dword [ebp + 0x74]
mov dword [eax], 1
mov eax, dword [ebp + 0x6c]
cmp dword [eax], ebx
jne 0x1015bdd
inc dword [ebp + 0x54]
lea edx, [ebp + 0x50]
push edx
push 0x824
lea edx, [ebp - 0x1468]
push edx
push dword [ebp + 0x54]
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jge 0x1015a76
jmp 0x1015bdd
mov edi, dword [sym.imp.SHLWAPI.dll_Ordinal_116]
jmp 0x1015bce
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_60]
push 1
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
call edi
test eax, eax
jne 0x1015bba
push 5
pop eax
cmp dword [ebp + 0x44], eax
jne 0x1015bef
mov dword [0x103ed88], 1
mov ecx, dword [ebp + 0x6c]
cmp dword [ecx], ebx
jne 0x1015ca2
mov ecx, dword [ebp + 0x78]
cmp dword [ecx], ebx
je 0x1015c06
mov dword [esi + 0xc], eax
jmp 0x1015c1a
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x1015c1a
cmp eax, 1
je 0x1015c1a
mov dword [esi + 0xc], 6
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
push ebx
push ebx
lea ecx, [ebp + 0x48]
push ecx
mov edi, 0x104
push edi
lea ecx, [ebp - 0x218]
push ecx
push ebx
push dword [ebp + 0x64]
mov dword [ebp + 0x54], ebx
call dword [eax + 0x20]
jmp 0x1015c93
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0100e3b1
cmp eax, ebx
je 0x1015c76
cmp dword [eax + 0x14], ebx
jne 0x1015c76
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push eax
push dword [ebp + 0x60]
call fcn.0101591c
mov eax, dword [ebp + 0x6c]
cmp dword [eax], ebx
jne 0x1015ca2
inc dword [ebp + 0x54]
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp + 0x48]
push edx
push edi
lea edx, [ebp - 0x218]
push edx
push dword [ebp + 0x54]
push eax
call dword [ecx + 0x20]
test eax, eax
jge 0x1015c3e
mov eax, dword [ebp + 0x6c]
cmp dword [eax], ebx
je 0x1015d8f
cmp dword [esi + 0x14], ebx
mov dword [esi + 0xc], 4
jne 0x1015d24
cmp dword [esi + 0x10], 1
jg 0x1015d24
cmp dword [esi + 0x1c], ebx
je 0x1015d24
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_Ordinal_136]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x18]
push eax
push ebx
push 0x104b
push dword [ebp + 0x68]
mov dword [ebp + 0x18], 2
call edi
mov eax, dword [esi]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x18]
push eax
push ebx
push 0x104c
push dword [ebp + 0x68]
mov dword [ebp + 0x34], 4
mov dword [ebp + 0x18], 2
call edi
lea eax, [ebp - 0x10]
push eax
push dword [esi]
mov dword [ebp - 8], 1
push 0x1074
push dword [ebp + 0x68]
mov dword [ebp + 4], 0x10016f0
call edi
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax]
lea edx, [ebp + 0x50]
push edx
push 0x824
lea edx, [ebp - 0x1468]
push edx
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x1015e43
test byte [ebp + 0x50], 2
lea eax, [ebp - 0x1468]
jne 0x1015d6a
push 0x2f
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
je 0x1015d64
inc eax
inc eax
jmp 0x1015d6a
lea eax, [ebp - 0x1468]
push eax
push 0x108ce98
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_57]
jmp 0x1015e43
mov eax, dword [ebp + 0x78]
push ebx
push dword [eax]
push esi
call fcn.010158b2
cmp dword [esi + 0x1c], ebx
je 0x1015e35
cmp dword [esi + 0x14], ebx
jne 0x1015db3
cmp dword [esi + 0x10], 1
jg 0x1015e35
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_Ordinal_136]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x18]
push eax
push ebx
push 0x104b
push dword [ebp + 0x68]
mov dword [ebp + 0x18], 2
call edi
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x1015df7
cmp eax, 1
je 0x1015df7
mov eax, dword [ebp + 0x78]
mov eax, dword [eax]
neg eax
sbb eax, eax
add eax, 6
mov dword [ebp + 0x34], eax
mov eax, dword [esi]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x18]
push eax
push ebx
push 0x104c
push dword [ebp + 0x68]
mov dword [ebp + 0x18], 2
call edi
lea eax, [esi + 0x464]
mov dword [ebp + 4], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
mov dword [ebp - 8], 1
push 0x1074
push dword [ebp + 0x68]
call edi
mov ecx, dword [ebp + 0x64]
cmp ecx, ebx
je 0x1015e43
push 1
call fcn.0101021e
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 0x20