Function at 0x422c80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462edd
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x47e4f0]
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 esi, ecx
mov eax, dword [esi + 8]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x42335a
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
lea ebx, [esi + 0xc]
je 0x42335a
push eax
mov dword [ebp - 0x274], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422dcd
mov eax, dword [ebx]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.00419060
add esp, 8
test eax, eax
jne 0x422e52
mov eax, dword [ebx]
push 0x2e
push eax
call fcn.00446d64
add esp, 8
test eax, eax
jne 0x422d14
or edi, 0xffffffff
jmp 0x422d1a
sub eax, dword [ebx]
sar eax, 1
mov edi, eax
push edi
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, ebx
call fcn.004178e0
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
sub eax, edi
push eax
lea eax, [ebp - 0x268]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00421ae0
mov edi, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x26c]
push edi
push ecx
push edx
push str._s__d_s
push ebx
mov byte [ebp - 4], 1
call fcn.00417c80
inc dword [ebp - 0x274]
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422d93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422dbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422ce7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax - 0xc]
lea edi, [esi + 8]
test ecx, ecx
jl 0x422eed
push str.https:__
push eax
call fcn.00447590
add esp, 8
test eax, eax
je 0x422eed
sub eax, dword [edi]
sar eax, 1
jne 0x422eed
mov ecx, esi
call fcn.004228c0
test eax, eax
je 0x422e98
mov eax, dword [ebx]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.00419060
add esp, 8
test eax, eax
je 0x422e98
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x268], esp
push 0
push 0x64
push 0x1004
mov dword [esi + 0x58], 0x6000
call fcn.004219a0
mov eax, dword [esi + 0x3c]
push eax
jmp 0x42338e
mov dword [esi + 0x58], 0x6000
mov dword [esi + 0x60], 1
mov edx, dword [0x48134c]
mov eax, dword [edx + 0xc]
sub esp, 0x10
mov ecx, 0x48134c
mov dword [ebp - 0x268], esp
mov edi, esp
call eax
add eax, 0x10
mov dword [edi + 0xc], eax
mov dword [edi], 0x1004
mov ecx, 0x64
mov dword [edi + 8], 0
jmp 0x423386
push 8
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, edi
call fcn.00421b70
push eax
lea edx, [ebp - 0x268]
push str.http:__
push edx
mov dword [ebp - 4], 2
call fcn.0041bb30
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040f7f0
lea ecx, [ebp - 0x268]
call fcn.0040ede0
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ede0
mov eax, dword [ebx]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x422f03
mov eax, dword [eax + 4]
push eax
mov ecx, ebx
call fcn.0040f1c0
mov eax, dword [edi]
mov ecx, dword [ebx]
sub eax, 0x10
cmp dword [eax + 0xc], 1
mov dword [ebp - 0x268], ecx
jle 0x422f21
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.0040f1c0
mov eax, dword [edi]
mov dword [ebp - 0x26c], eax
call fcn.004235b0
mov ecx, dword [ebp - 0x268]
mov edx, dword [ebp - 0x26c]
mov eax, dword [eax + 0x1c]
push ecx
push edx
push 0
call eax
mov dword [esi + 4], eax
mov eax, dword [edi]
mov ecx, dword [eax - 8]
add esp, 0xc
test eax, eax
je 0x422f64
push ecx
push eax
call fcn.00448e74
add esp, 8
test eax, eax
jl 0x423350
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x423350
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x422f95
push ecx
push eax
call fcn.00448e74
add esp, 8
test eax, eax
jl 0x423350
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x423350
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
call fcn.004235b0
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x24]
push ecx
call edx
add esp, 4
test eax, eax
jne 0x422fe0
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x268], esp
push eax
push eax
push 0x1000
call fcn.004219a0
mov eax, dword [esi + 0x3c]
push eax
jmp 0x42338e
push 0
push 0
push 0x1000
lea ecx, [ebp - 0x284]
call fcn.004219a0
cmp dword [esi + 0x5c], 0
mov dword [ebp - 4], 4
jne 0x42322e
mov ecx, dword [esi + 0x18]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42322e
push 0x254
lea edx, [ebp - 0x264]
push 0
push edx
call fcn.00446080
call fcn.004235b0
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0x264]
push ecx
push edx
call eax
add esp, 0x14
test eax, eax
je 0x42322e
mov edi, dword [ebp - 0x25c]
mov ecx, edi
or ecx, dword [ebp - 0x258]
je 0x42308c
mov edx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x254]
push 0
push 0x64
push edx
push eax
call fcn.00449960
mov ecx, dword [ebp - 0x258]
push ecx
push edi
push edx
push eax
call fcn.004498f0
mov word [ebp - 0x280], ax
mov eax, dword [ebp - 0x224]
xor ecx, ecx
mov dword [ebp - 0x270], eax
test eax, eax
jne 0x4230e0
test ecx, ecx
jne 0x4230e0
mov edx, dword [esi + 0x64]
push edx
call fcn.004161d0
mov ecx, dword [ebp - 0x254]
add esp, 4
push 0
mov edi, eax
mov eax, dword [ebp - 0x250]
push 0x3e8
push eax
push ecx
call fcn.00449960
push 0
push edi
push edx
push eax
call fcn.004498f0
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edx
mov edx, dword [esi + 0x64]
push edx
mov dword [ebp - 0x27c], eax
call fcn.004161d0
add esp, 4
cmp eax, 0x2710
jbe 0x423125
cmp dword [ebp - 0x258], 0
ja 0x42310f
cmp dword [ebp - 0x25c], 1
jb 0x423205
cmp dword [ebp - 0x250], 0
ja 0x423125
cmp dword [ebp - 0x254], 1
jb 0x423205
mov eax, dword [esi + 0x64]
push eax
call fcn.004161d0
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp - 0x25c]
imul ecx, ecx, 0x3e8
add esp, 4
cmp eax, ecx
mov ecx, dword [ebp - 0x258]
jbe 0x423168
mov eax, dword [ebp - 0x250]
cmp eax, ecx
jb 0x423224
ja 0x423168
mov eax, dword [ebp - 0x254]
cmp eax, edx
jb 0x423224
mov al, byte [ebp - 0x21f]
cmp al, 1
je 0x423211
cmp al, 3
je 0x423224
cmp al, 2
je 0x42322e
cmp al, 4
je 0x42322e
cmp al, 5
je 0x42322e
cmp al, 6
je 0x42322e
test ecx, ecx
ja 0x4231a7
cmp edx, 1
jb 0x4231f9
mov eax, dword [ebp - 0x278]
mov cx, word [ebp - 0x280]
mov edx, dword [ebp - 0x270]
sub esp, 0x10
mov edi, esp
add eax, 0xfffffff0
mov dword [ebp - 0x268], esp
push eax
mov dword [ebp - 0x284], 0x1003
mov dword [edi], 0x1003
mov word [edi + 4], cx
mov dword [edi + 8], edx
call fcn.0040f250
add eax, 0x10
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x3c]
add esp, 4
push eax
mov ecx, esi
call fcn.00421f10
cmp dword [esi + 0x5c], 0
je 0x423005
jmp 0x42322e
mov dword [ebp - 0x284], 0x1001
jmp 0x42322e
mov dword [esi + 0x58], 0x6000
mov dword [ebp - 0x284], 0x1004
jmp 0x42322e
mov dword [ebp - 0x284], 0x1002
call fcn.004235b0
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x34]
push ecx
call edx
add esp, 4
cmp dword [ebp - 0x284], 0x1001
jne 0x423321
lea edi, [esi + 8]
push 0x3b
mov ecx, edi
call fcn.00421740
push 0x7c
mov ecx, edi
mov dword [ebp - 0x268], eax
call fcn.00421740
mov ecx, dword [ebp - 0x268]
test ecx, ecx
jle 0x423298
inc ecx
push ecx
lea eax, [ebp - 0x268]
push eax
mov ecx, edi
call fcn.00421b70
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040f940
lea ecx, [ebp - 0x268]
jmp 0x4232c2
test eax, eax
jle 0x423321
inc eax
push eax
lea ecx, [ebp - 0x274]
push ecx
mov ecx, edi
call fcn.00421b70
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0040f940
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.0040ede0
mov ecx, esi
call fcn.004228c0
test eax, eax
je 0x423321
mov ebx, dword [ebx]
mov eax, dword [esi + 0x10]
push ebx
push eax
call fcn.00419060
add esp, 8
test eax, eax
je 0x423321
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x268], esp
push 0
push 0x64
push 0x1004
mov dword [esi + 0x58], 0x6000
call fcn.004219a0
mov edx, dword [esi + 0x3c]
push edx
mov ecx, esi
call fcn.00421f10
lea ecx, [ebp - 0x284]
call fcn.0041e520
jmp 0x423395
sub esp, 0x10
lea eax, [ebp - 0x284]
mov ecx, esp
mov dword [ebp - 0x268], esp
push eax
call fcn.00421a70
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, esi
call fcn.00421f10
lea ecx, [ebp - 0x284]
call fcn.0041e520
jmp 0x423395
push 0x80070057
call fcn.00403db0
mov edx, dword [0x48134c]
mov eax, dword [edx + 0xc]
sub esp, 0x10
mov ecx, 0x48134c
mov dword [ebp - 0x268], esp
mov edi, esp
call eax
add eax, 0x10
mov dword [edi + 0xc], eax
xor ecx, ecx
mov dword [edi], 0x1000
mov dword [edi + 8], ecx
mov word [edi + 4], cx
mov edx, dword [esi + 0x3c]
push edx
mov ecx, esi
call fcn.00421f10
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.00445a92
mov esp, ebp
pop ebp
ret