Function at 0x422dd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6450d5
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 0xb8]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], ebx
call fcn.00432740
mov dword [ebp - 4], ebx
mov edi, dword [0x6ce720]
cmp edi, ebx
jne 0x422e58
push 0x138
call fcn.004eff75
add esp, 4
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x422e4b
mov esi, eax
call fcn.00434ee0
jmp 0x422e4d
xor eax, eax
mov edi, eax
mov byte [ebp - 4], bl
mov dword [0x6ce720], edi
lea ebx, [ebp - 0x2c]
call fcn.004351b0
xor ebx, ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], ebx
jbe 0x422ee2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a950
cmp dword [ebp - 0x1c], ebx
je 0x422ee2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x422e8e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x422ee2
mov esi, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
mov edi, 7
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402260
cmp dword [ebp - 0x18], 8
jb 0x422ed1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
cmp dword [ebp - 0xa4], 8
mov dword [ebp - 0x18], edi
jmp 0x4236be
lea esi, [ebp - 0x9c]
call fcn.004324d0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x48]
mov dword [ebp - 0xe8], reloc.WS2_32.dll_accept
call fcn.00432470
mov edi, eax
push 0x69061c
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 4
call fcn.0040aa60
add esp, 0xc
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 5
cmp dword [0x6ce720], ebx
jne 0x422f62
push 0x138
call fcn.004eff75
add esp, 4
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x422f57
mov esi, eax
call fcn.00434ee0
jmp 0x422f59
xor eax, eax
mov byte [ebp - 4], 5
mov dword [0x6ce720], eax
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0xe8]
push eax
mov edx, edi
lea esi, [ebp - 0x80]
call fcn.00435610
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00402260
mov edi, 8
cmp dword [ebp - 0x6c], edi
jb 0x422f9c
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], edi
jb 0x422fbe
mov eax, dword [ebp - 0x64]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], edi
jb 0x422fdf
mov edx, dword [ebp - 0x48]
push edx
call fcn.004effaf
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x42328d
lea esi, [ebp - 0x48]
call fcn.00432830
push eax
lea eax, [ebp - 0x80]
push 0x688728
push eax
mov byte [ebp - 4], 8
call fcn.00411e70
add esp, 0xc
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
call fcn.004320b0
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xd5]
cmp dword [ebp - 0x50], edi
jb 0x423034
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x6c], edi
jb 0x423056
mov eax, dword [ebp - 0x80]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x34], edi
jb 0x423077
mov edx, dword [ebp - 0x48]
push edx
call fcn.004effaf
add esp, 4
cmp byte [ebp - 0xd5], bl
je 0x423146
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a950
cmp dword [ebp - 0x1c], ebx
je 0x42328d
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4230a9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x42328d
mov esi, dword [ebp - 0xe0]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00402260
cmp dword [ebp - 0x88], edi
jb 0x4230f4
mov eax, dword [ebp - 0x9c]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
cmp dword [ebp - 0x18], edi
jb 0x42311e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0xa4], edi
jb 0x4236d6
mov ecx, dword [ebp - 0xb8]
push ecx
jmp 0x4236ce
lea esi, [ebp - 0xd4]
call fcn.00432800
mov esi, eax
mov byte [ebp - 4], 0xa
push 1
xor edx, edx
push 0x688728
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
call fcn.00403600
push esi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 0xb
call fcn.0040ada0
add esp, 0xc
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.004320b0
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xd5]
cmp dword [ebp - 0x50], edi
jb 0x4231b9
mov edx, dword [ebp - 0x64]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x34], edi
jb 0x4231db
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x6c], edi
jb 0x4231f8
mov eax, dword [ebp - 0x80]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0xc0], edi
jb 0x42321f
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004effaf
add esp, 4
cmp byte [ebp - 0xd5], bl
je 0x42328d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a950
cmp dword [ebp - 0x1c], ebx
je 0x42328d
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x423249
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x42328d
lea ecx, [ebp - 0x2c]
push ecx
mov esi, dword [ebp - 0xe0]
mov ecx, esi
call fcn.00401da0
lea ecx, [ebp - 0x9c]
call fcn.004bf3b0
lea ecx, [ebp - 0x2c]
call fcn.004bf3b0
lea ecx, [ebp - 0xb8]
call fcn.004bf3b0
jmp 0x4236d6
call fcn.00432b90
test al, al
je 0x4232b1
lea esi, [ebp - 0xd4]
call fcn.00432500
mov byte [ebp - 4], 0xd
mov dword [ebp - 0xdc], 2
jmp 0x4232ca
lea esi, [ebp - 0x48]
call fcn.004324d0
mov dword [ebp - 4], 0xe
mov dword [ebp - 0xdc], 4
push eax
lea ecx, [ebp - 0x9c]
call fcn.00402260
test byte [ebp - 0xdc], 4
je 0x423307
and dword [ebp - 0xdc], 0xfffffffb
cmp dword [ebp - 0x34], edi
jb 0x4232f7
mov edx, dword [ebp - 0x48]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 3
test byte [ebp - 0xdc], 2
je 0x42332e
cmp dword [ebp - 0xc0], edi
jb 0x42332e
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.004effaf
add esp, 4
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xe4], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00432470
mov dword [ebp - 0xe8], eax
push 0x69061c
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040aa60
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 0x10
cmp dword [0x6ce720], ebx
jne 0x4233a6
push 0x138
call fcn.004eff75
add esp, 4
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 0x11
cmp eax, ebx
je 0x42339b
mov esi, eax
call fcn.00434ee0
jmp 0x42339d
xor eax, eax
mov byte [ebp - 4], 0x10
mov dword [0x6ce720], eax
mov edx, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0xdc]
lea esi, [ebp - 0x48]
call fcn.00435610
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.00402260
cmp dword [ebp - 0x34], edi
jb 0x4233df
mov edx, dword [ebp - 0x48]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], edi
jb 0x423401
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xc0], edi
jb 0x423428
mov eax, dword [ebp - 0xd4]
push eax
call fcn.004effaf
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x42364c
lea esi, [ebp - 0xd4]
call fcn.00432830
push eax
lea ecx, [ebp - 0x64]
push 0x688728
push ecx
mov byte [ebp - 4], 0x13
call fcn.00411e70
add esp, 0xc
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x14
call fcn.004320b0
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xd5]
cmp dword [ebp - 0x34], edi
jb 0x423480
mov edx, dword [ebp - 0x48]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], edi
jb 0x4234a2
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xc0], edi
jb 0x4234c9
mov eax, dword [ebp - 0xd4]
push eax
call fcn.004effaf
add esp, 4
cmp byte [ebp - 0xd5], bl
je 0x423530
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a950
cmp dword [ebp - 0x1c], ebx
je 0x42364c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4234f7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x42364c
mov esi, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402260
jmp 0x42326a
lea esi, [ebp - 0xd4]
call fcn.00432800
mov esi, eax
mov byte [ebp - 4], 0x15
xor ecx, ecx
push 1
mov word [ebp - 0x80], cx
push 0x688728
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
call fcn.00403600
push esi
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040ada0
add esp, 0xc
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x17
call fcn.004320b0
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xd5]
cmp dword [ebp - 0x34], edi
jb 0x4235a3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x50], edi
jb 0x4235c5
mov eax, dword [ebp - 0x64]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], edi
jb 0x4235e2
mov edx, dword [ebp - 0x80]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0xc0], edi
jb 0x423609
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.004effaf
add esp, 4
cmp byte [ebp - 0xd5], bl
je 0x42364c
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a950
cmp dword [ebp - 0x1c], ebx
je 0x42364c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x423633
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x42364c
lea eax, [ebp - 0x2c]
push eax
jmp 0x42325d
mov esi, dword [ebp - 0xe0]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x688638
mov ecx, esi
call fcn.00403600
cmp dword [ebp - 0x88], edi
jb 0x423685
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x18], edi
jb 0x4236af
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
cmp dword [ebp - 0xa4], edi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x1c], ebx
jb 0x4236d6
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004effaf
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret