Function at 0x10023280
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x430
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x434]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebp
mov ebp, dword [0x101ddec4]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x101ddedc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov esi, dword [0x101ddedc]
test ebp, ebp
je 0x100232d3
cmp ebp, dword [0x101ddec4]
je 0x100232d8
call fcn.100d13c5
cmp dword [esp + 0x18], esi
je 0x1002377e
test ebp, ebp
jne 0x1002331b
call fcn.100d13c5
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x18]
jne 0x100232fb
call fcn.100d13c5
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ecx
push edi
call ebx
test eax, eax
je 0x10023320
lea esi, [esp + 0x14]
call fcn.10024890
mov ebp, dword [esp + 0x14]
jmp 0x100232c1
mov eax, dword [ebp]
jmp 0x100232ed
test ebp, ebp
jne 0x10023368
call fcn.100d13c5
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x10023335
call fcn.100d13c5
mov edx, dword [esi + 0xc]
cmp byte [edx + 8], 0
jne 0x10023372
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
test ebp, ebp
jne 0x1002336d
call fcn.100d13c5
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1002335d
call fcn.100d13c5
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 4]
jmp 0x10023780
mov eax, dword [ebp]
jmp 0x1002332b
mov eax, dword [ebp]
jmp 0x10023353
test ebp, ebp
jne 0x100233ae
call fcn.100d13c5
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x10023387
call fcn.100d13c5
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 4]
push 4
push 0
push 0
push 0
call eax
test al, al
je 0x100233d3
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 0
test ebp, ebp
je 0x100233b7
mov eax, dword [ebp]
jmp 0x100233be
mov eax, dword [ebp]
jmp 0x1002337d
test ebp, ebp
jne 0x100233a9
call fcn.100d13c5
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x100233c8
call fcn.100d13c5
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 4]
jmp 0x10023780
test ebp, ebp
jne 0x100233fd
call fcn.100d13c5
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x100233e8
call fcn.100d13c5
mov eax, dword [esi + 0xc]
cmp byte [eax + 9], 1
jne 0x10023402
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 2
jmp 0x100233b3
mov eax, dword [ebp]
jmp 0x100233de
test ebp, ebp
jne 0x10023504
call fcn.100d13c5
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1002341b
call fcn.100d13c5
cmp dword [esi + 0x10], 0
je 0x1002374a
test ebp, ebp
jne 0x1002350c
call fcn.100d13c5
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x10023442
call fcn.100d13c5
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x10]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x10023456
call fcn.100d13c5
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
test ebp, ebp
jne 0x10023514
call fcn.100d13c5
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x1002347d
call fcn.100d13c5
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x10]
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x10023491
call fcn.100d13c5
mov edi, dword [esp + 0x20]
mov esi, dword [esi]
test edi, edi
je 0x1002349f
cmp edi, esi
je 0x100234a4
call fcn.100d13c5
cmp dword [esp + 0x24], ebx
je 0x1002374a
xor ebx, ebx
mov eax, dword [ebx + 0x101afe20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x100236d2
push 0x208
lea ecx, [esp + 0x234]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x104
lea eax, [esp + 0x230]
cmp word [eax], 0
je 0x1002351c
add eax, 2
sub ecx, 1
jne 0x100234f4
jmp 0x1002353f
mov eax, dword [ebp]
jmp 0x10023411
mov eax, dword [ebp]
jmp 0x10023434
mov eax, dword [ebp]
jmp 0x1002346f
test ecx, ecx
je 0x1002353f
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x230]
mov eax, 0x10129ee0
call fcn.100044a0
mov eax, dword [ebx + 0x101afe24]
mov esi, 0x104
lea ecx, [esp + 0x230]
cmp word [ecx], 0
je 0x10023561
add ecx, 2
sub esi, 1
jne 0x10023551
jmp 0x1002357f
test esi, esi
je 0x1002357f
mov edx, 0x104
sub edx, esi
mov ecx, 0x104
sub ecx, edx
lea edx, [esp + edx*2 + 0x230]
call fcn.100044a0
mov eax, dword [ebx + 0x101afe20]
mov ecx, 0x104
lea edx, [esp + 0x28]
call fcn.10003cf0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x104
lea eax, [esp + 0x28]
cmp word [eax], 0
je 0x100235b7
add eax, 2
sub ecx, 1
jne 0x100235a7
jmp 0x100235d7
test ecx, ecx
je 0x100235d7
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x28]
mov eax, 0x10129ee0
call fcn.100044a0
mov ecx, dword [ebx + 0x101afe20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, 0x104
lea ecx, [esp + 0x28]
lea ecx, [ecx]
cmp word [ecx], 0
je 0x10023600
add ecx, 2
sub esi, 1
jne 0x100235f0
jmp 0x1002361b
test esi, esi
je 0x1002361b
mov edx, 0x104
sub edx, esi
mov ecx, 0x104
sub ecx, edx
lea edx, [esp + edx*2 + 0x28]
call fcn.100044a0
test edi, edi
jne 0x10023653
call fcn.100d13c5
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x10]
jb 0x10023634
call fcn.100d13c5
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov esi, 0x104
lea ecx, [esp + 0x28]
cmp word [ecx], 0
je 0x10023657
add ecx, 2
sub esi, 1
jne 0x10023643
jmp 0x10023672
mov eax, dword [edi]
jmp 0x10023626
test esi, esi
je 0x10023672
mov edx, 0x104
sub edx, esi
mov ecx, 0x104
sub ecx, edx
lea edx, [esp + edx*2 + 0x28]
call fcn.100044a0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100236d2
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100236d2
cmp byte [0x101dd380], 0
jne 0x100236d2
test ebp, ebp
jne 0x10023704
call fcn.100d13c5
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x18]
jne 0x100236b5
call fcn.100d13c5
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
push 0
push 0
lea ecx, [esp + 0x238]
push ecx
lea edx, [esp + 0x34]
push edx
call eax
test al, al
jne 0x1002370d
add ebx, 8
cmp ebx, 0xb8
jb 0x100234b0
test edi, edi
jne 0x10023709
call fcn.100d13c5
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x100236fa
call fcn.100d13c5
add dword [esp + 0x24], 4
jmp 0x10023460
mov eax, dword [ebp]
jmp 0x100236a7
mov eax, dword [edi]
jmp 0x100236ec
mov edx, dword [esp + 0x1c]
mov dword [edx], 0
test ebp, ebp
jne 0x10023745
call fcn.100d13c5
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x18]
jne 0x10023730
call fcn.100d13c5
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push 3
push 0
push 0
push 0
call ecx
jmp 0x100233b3
mov eax, dword [ebp]
jmp 0x10023722
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
test ebp, ebp
jne 0x10023779
call fcn.100d13c5
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x18]
jne 0x1002335d
call fcn.100d13c5
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 4]
jmp 0x10023780
mov eax, dword [ebp]
jmp 0x1002375f
xor eax, eax
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x430
ret