Function at 0x42ebc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5c6882
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x354], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x36c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x37c]
xor esi, esi
mov dword [esp + 0x14], esi
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], esi
mov word [esp + 0x88], ax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
push esi
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
mov dword [esp + 0x37c], 1
call fcn.0042e920
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
mov byte [esp + 0x374], 2
jae 0x42ec67
lea eax, [esp + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push esi
push esi
push eax
call ebx
mov esi, eax
test esi, esi
je 0x42ece5
push esi
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x20]
call fcn.00421b20
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x40]
jae 0x42ec9f
lea eax, [esp + 0x40]
push esi
push ecx
push eax
call ebx
test eax, eax
lea ecx, [esp + 0x18]
setne bl
call fcn.004215e0
test bl, bl
je 0x42ecfd
xor esi, esi
push 0xffffffffffffffff
xor ecx, ecx
mov ebx, 7
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], esi
push esi
lea edx, [esp + 0x90]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00402610
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
jmp 0x42f349
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42f322
cmp eax, 0x35
je 0x42f322
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x42efcd
lea edx, [esp + 0xac]
push edx
mov ecx, ebp
call fcn.0042c770
push 3
mov edi, eax
lea esi, [esp + 0xf8]
mov byte [esp + 0x378], 3
call fcn.0042d6e0
mov esi, eax
lea eax, [esp + 0x1c]
push 3
push eax
mov byte [esp + 0x380], 4
call fcn.0042d670
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xe0]
push esi
push edx
call fcn.00421e50
add esp, 0x18
lea ecx, [esp + 0x88]
mov byte [esp + 0x374], 5
cmp ecx, eax
je 0x42ed75
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402610
mov edx, dword [esp + 0xec]
push edx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0xe4], esi
jb 0x42eda3
mov eax, dword [esp + 0xd0]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
mov edi, 7
xor ebx, ebx
push edx
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x108], esi
jb 0x42edeb
mov eax, dword [esp + 0xf4]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xc8]
xor ecx, ecx
push edx
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], cx
mov byte [esp + 0x378], 2
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xc0], esi
jb 0x42ee34
mov eax, dword [esp + 0xac]
push eax
call fcn.00584768
add esp, 4
mov edi, dword [esp + 0x28]
xor ebx, ebx
lea edx, [ebp + 0x24]
push edx
lea ecx, [esp + 0x30]
call fcn.0041fcc0
lea eax, [esp + 0xac]
push eax
mov ecx, ebp
mov byte [esp + 0x378], 6
call fcn.0042e4e0
push 1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x37c], 7
call fcn.0041ef80
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xc0], esi
jb 0x42ee9b
mov edx, dword [esp + 0xac]
push edx
call fcn.00584768
add esp, 4
mov ebp, 7
xor eax, eax
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x34]
mov byte [esp + 0x374], 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
cmp eax, ebx
jbe 0x42f109
mov dword [esp + 0x24], ebx
lea ecx, [ecx]
mov esi, dword [esp + 0x24]
add esi, dword [esp + 0x38]
lea eax, [esp + 0x88]
push esi
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.00422d10
add esp, 0xc
lea edx, [esp + 0x64]
mov byte [esp + 0x374], 9
cmp edx, eax
je 0x42ef1c
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edx
call fcn.00402610
mov eax, dword [esp + 0xc8]
push eax
mov byte [esp + 0x378], 8
call fcn.005844d1
mov ebp, 8
add esp, 4
cmp dword [esp + 0xc0], ebp
jb 0x42ef52
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00584768
add esp, 4
cmp dword [esp + 0x74], ebx
je 0x42effa
mov eax, 0x2e
push 1
push eax
mov ecx, esi
call fcn.004207e0
test al, al
jne 0x42effa
push 0x5fd0c4
mov ecx, esi
call fcn.00421ee0
test eax, eax
je 0x42effa
lea edx, [esp + 0xac]
push 3
push edx
call fcn.0042ca90
add esp, 8
or dword [esp + 0x14], 2
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x374], 0xa
cmp dword [esp + 0x78], ebp
jae 0x42efb0
lea ecx, [esp + 0x64]
mov edx, dword [esp + 0x74]
lea edx, [ecx + edx*2 - 2]
movzx edx, word [edx]
push 1
push edx
mov ecx, eax
call fcn.004207e0
test al, al
jne 0x42effa
xor bl, bl
jmp 0x42effc
mov eax, dword [esp + 0x88]
mov esi, 8
mov dword [esp + 0x98], ebx
cmp dword [esp + 0x9c], esi
jae 0x42eff0
lea eax, [esp + 0x88]
xor ecx, ecx
mov word [eax], cx
jmp 0x42ee3a
mov bl, 1
test byte [esp + 0x14], 2
mov ebp, 8
mov dword [esp + 0x374], ebp
je 0x42f03d
mov eax, dword [esp + 0xc8]
and dword [esp + 0x14], 0xfffffffd
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xc0], ebp
jb 0x42f03d
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00584768
add esp, 4
test bl, bl
je 0x42f06a
mov eax, 0x5c
push eax
lea ecx, [esp + 0x68]
call fcn.00414690
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x94]
call fcn.00402610
jmp 0x42f0e8
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x42f078
lea eax, [esp + 0x64]
lea ecx, [esp + 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f1cd
lea eax, [esp + 0x144]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f0a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x148]
push edx
lea ecx, [esp + 0x90]
call fcn.004024f0
mov eax, dword [esp + 0x18]
dec eax
cmp dword [esp + 0x20], eax
jae 0x42f0e1
mov eax, 0x5c
push eax
lea ecx, [esp + 0x8c]
call fcn.00414690
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x24
inc eax
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x18]
jb 0x42eee0
mov esi, ebp
mov ebp, 7
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x90]
xor eax, eax
push ecx
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00402610
mov edx, dword [esp + 0x80]
or dword [esp + 0x14], 1
push edx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x78], esi
jb 0x42f154
mov eax, dword [esp + 0x64]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0x64], cx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x374], 2
call fcn.0041e1d0
mov edx, dword [esp + 0x5c]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x54], esi
jb 0x42f194
mov eax, dword [esp + 0x40]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xa4]
xor ecx, ecx
push edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x9c], esi
jb 0x42f3a6
mov eax, dword [esp + 0x88]
push eax
jmp 0x42f39e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
jae 0x42f25d
lea esi, [eax + eax*8]
add esi, esi
add esi, esi
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x42f1f0
mov ecx, dword [esp + 0x38]
lea eax, [esi + ecx]
push eax
lea edx, [esp + 0xb0]
push 0x5c
push edx
call fcn.0042c350
add esp, 0xc
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x380], 0xb
call fcn.004023f0
mov eax, dword [esp + 0xc8]
push eax
mov byte [esp + 0x378], 8
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xc0], ebp
jb 0x42f252
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00584768
add esp, 4
add esi, 0x24
dec dword [esp + 0x18]
jne 0x42f1f0
jmp 0x42f25f
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov esi, 7
xor edx, edx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov word [edi], dx
call fcn.00402610
mov ecx, dword [esp + 0x80]
or dword [esp + 0x14], 1
push ecx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x78], ebp
jb 0x42f2ac
mov edx, dword [esp + 0x64]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
mov byte [esp + 0x374], 2
call fcn.0041e1d0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x54], ebp
jb 0x42f2ec
mov edx, dword [esp + 0x40]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xa4]
xor eax, eax
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x9c], ebp
jb 0x42f3a6
mov edx, dword [esp + 0x88]
push edx
jmp 0x42f39e
xor esi, esi
push 0xffffffffffffffff
xor ecx, ecx
mov ebx, 7
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], esi
push esi
lea edx, [esp + 0x48]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00402610
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov eax, dword [esp + 0x5c]
push eax
call fcn.005844d1
mov ebp, 8
add esp, 4
cmp dword [esp + 0x54], ebp
jb 0x42f36e
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0xa4]
xor edx, edx
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], esi
mov word [esp + 0x44], dx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x9c], ebp
jb 0x42f3a6
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00584768
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x36c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x354]
xor ecx, esp
call fcn.00585b7b
add esp, 0x364
ret 4