Function at 0x442300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519583
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5746cc]
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 edx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x442785
mov ecx, edx
lea ebx, [eax + 4]
mov dword [ebp - 0x4c], ebx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x442350
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0040ab90
push 0x5299d4
push 0x532f88
mov ecx, ebx
call fcn.00418370
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x442394
lea eax, [ecx - 0x10]
push eax
call fcn.0040d2a0
add esp, 4
add eax, 0x10
jmp 0x4423c7
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x4423a4
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4423b0
call fcn.0040b740
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x50]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.00413560
mov eax, dword [ebp - 0x50]
mov edx, 0x5299d4
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x4423fb
test si, si
je 0x4423f2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4423fb
add ecx, 4
add edx, 4
test si, si
jne 0x4423d0
mov dword [ebp - 0x44], 0
jmp 0x442403
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x44], ecx
or edi, 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44241d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 0
mov esi, 0x40
jne 0x4424b3
mov edx, dword [ebx]
xor esi, esi
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x442453
lea eax, [edx - 0x10]
push eax
call fcn.0040d2a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
jmp 0x44247e
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x442463
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x44246f
call fcn.0040b740
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebx]
lea ecx, [ebp - 0x44]
call fcn.00413560
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00413b10
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, 0xc0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4424b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
mov dword [ebp - 0x50], esi
call fcn.00451200
add esp, 4
test eax, eax
jne 0x442742
lea eax, [ebp - 0x40]
push eax
call fcn.0043ebd0
mov dword [ebp - 0x60], eax
push 0x5299d4
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push ebx
or esi, 1
push eax
mov dword [ebp - 0x44], esi
call fcn.00440cb0
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x50]
mov ecx, ebx
or ecx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], ecx
cmp dword [eax + 0x14], 8
jb 0x442511
mov eax, dword [eax]
push eax
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.00440cb0
add esp, 0xc
push dword [eax]
or ebx, 7
mov dword [ebp - 4], 3
mov dword [ebp - 0x44], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44259f
lea eax, [ebp - 0x28]
push eax
call fcn.0043ee60
mov esi, eax
push 0x5299d4
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 4
or ebx, 8
push eax
mov dword [ebp - 0x44], ebx
call fcn.00440cb0
add esp, 0x10
mov ebx, dword [ebp - 0x50]
mov ecx, ebx
or ecx, 0x1f
mov dword [ebp - 4], 5
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x44], ecx
jb 0x44257e
mov esi, dword [esi]
push esi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00440cb0
add esp, 0xc
or ebx, 0x3f
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x45], 0
test eax, eax
je 0x4425a3
mov byte [ebp - 0x45], 1
test bl, 0x20
je 0x4425c8
mov edx, dword [ebp - 0x64]
and ebx, 0xffffffdf
mov dword [ebp - 0x44], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4425c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
test bl, 0x10
je 0x4425f4
mov edx, dword [ebp - 0x68]
and ebx, 0xffffffef
mov dword [ebp - 0x44], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4425f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 8
je 0x442604
lea ecx, [ebp - 0x28]
and ebx, 0xfffffff7
call fcn.0041bf10
mov edx, dword [ebp - 0x54]
mov esi, ebx
and ebx, 0xfffffffb
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44262d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x58]
mov eax, esi
and eax, 0xfffffff9
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442656
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
and esi, 0xfffffff8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.0041bf10
cmp byte [ebp - 0x45], 0
mov ebx, dword [ebp - 0x4c]
jne 0x442742
push 0x5299d4
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00440cb0
add esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 6
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x4426ac
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4426c2
call fcn.0040b740
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4427a3
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x58]
add eax, 0x10
mov dword [ebp - 0x4c], eax
or esi, 0x100
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], esi
mov ecx, dword [ecx]
mov eax, dword [eax + 0x250]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x4c]
push ecx
push eax
call fcn.00441190
add esp, 0x14
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.00413b10
mov edx, dword [ebp - 0x4c]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442742
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x532f8c
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00440cb0
add esp, 0xc
push eax
mov ecx, 0x57c284
mov dword [ebp - 4], 8
call fcn.004449f0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x442785
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004864b8
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00409360
int3