Function at 0x4dd600
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a3e2c
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0xa0], edi
mov ebx, dword [esp + 0xa8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dd66c
lea eax, [ebx - 0x10]
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4dddff
or ebp, 0xffffffff
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], edi
lea ecx, [esp + 0x5c]
push ecx
lea eax, [ebp + 2]
mov ecx, ebx
mov byte [esp + 0xa4], 1
call fcn.004d0930
cmp eax, edi
jl 0x4dddd1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x60]
mov byte [esp + 0xa4], 2
call fcn.004d05c0
test eax, eax
je 0x4dddaa
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
mov edx, dword [0x5fcd20]
add eax, 0x10
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0xa0], 3
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0xa0], 4
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov byte [esp + 0xa0], 5
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xa0], 6
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0xa0], 7
call fcn.004192d0
mov edi, eax
call fcn.00419350
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x4dd84a
mov byte [esp + 0xa0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd7d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd7ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0xa0], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd823
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebp, 0xfffffff0
mov byte [esp + 0xa0], 3
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ddd40
mov ecx, dword [ebp]
push ebp
jmp 0x4ddd39
cmp dword [eax - 0xc], 3
jle 0x4dd880
lea ecx, [esp + 0x1c]
push ecx
mov eax, 3
xor ecx, ecx
lea edx, [esp + 0x34]
call fcn.00403eb0
or dword [esp + 0x28], 1
push eax
mov ecx, 0x5c97ec
call fcn.004866f0
add esp, 4
test al, al
je 0x4dd880
mov bl, 1
jmp 0x4dd882
xor bl, bl
test byte [esp + 0x28], 1
je 0x4dd8ae
mov eax, dword [esp + 0x30]
and dword [esp + 0x28], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4dd8ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4dd907
mov ecx, 4
lea esi, [esp + 0x34]
lea edx, [esp + 0x1c]
call fcn.00403540
lea edi, [esp + 0x14]
mov byte [esp + 0xa0], 8
call fcn.004035d0
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd8fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 1
jmp 0x4dd91c
lea eax, [esp + 0x1c]
lea edi, [esp + 0x14]
call fcn.004035d0
mov dword [esp + 0x2c], 0
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
jle 0x4dd944
push 0x20
push ebp
call fcn.00578331
add esp, 8
test eax, eax
je 0x4dd944
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dd9d0
lea eax, [esp + 0x14]
lea edi, [esp + 0x24]
call fcn.004035d0
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.004d2580
test eax, eax
jne 0x4dd9b8
mov byte [esp + 0xa0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd988
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd9b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x4dda81
mov edx, 0x5bcc3c
lea edi, [esp + 0x20]
mov ebx, 1
call fcn.004040f0
jmp 0x4ddc48
lea ecx, [esp + 0x14]
push ecx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x3c]
call fcn.00403eb0
lea edi, [esp + 0x24]
mov byte [esp + 0xa0], 9
call fcn.004035d0
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4dda1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.004d2580
test eax, eax
jne 0x4ddadc
mov byte [esp + 0xa0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dda56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dda7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xa0], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddaa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xa0], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x4c]
mov byte [esp + 0xa0], 2
call fcn.004ca770
jmp 0x4ddd88
lea ecx, [esi + 1]
lea esi, [esp + 0x3c]
lea edx, [esp + 0x14]
call fcn.00403540
lea edi, [esp + 0x14]
mov byte [esp + 0xa0], 0xa
call fcn.004035d0
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddb25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
jle 0x4ddb49
push 0x20
push ebp
call fcn.00578331
add esp, 8
test eax, eax
je 0x4ddb49
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ddba5
xor ecx, ecx
lea esi, [esp + 0x40]
lea edx, [esp + 0x14]
call fcn.00403540
lea edi, [esp + 0x18]
mov byte [esp + 0xa0], 0xb
call fcn.004035d0
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddb91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005796ae
add esp, 4
mov ebx, eax
jmp 0x4ddc48
lea edx, [esp + 0x14]
push edx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x48]
call fcn.00403eb0
lea edi, [esp + 0x18]
mov byte [esp + 0xa0], 0xc
call fcn.004035d0
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddbf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005796ae
lea ecx, [esi + 1]
add esp, 4
lea esi, [esp + 0x48]
lea edx, [esp + 0x14]
mov ebx, eax
call fcn.00403540
lea edi, [esp + 0x20]
mov byte [esp + 0xa0], 0xd
call fcn.004035d0
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ddc48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x24]
lea edi, [esp + 0x4c]
call fcn.004035d0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
lea edi, [esp + 0x58]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
call fcn.004035d0
mov ecx, dword [esp + 0xac]
lea edx, [esp + 0x4c]
push edx
call fcn.004cb550
mov edi, eax
lea eax, [esp + 0x4c]
call fcn.004035d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
add edi, 0xc
lea eax, [esp + 0x58]
call fcn.004035d0
mov byte [esp + 0xa0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ddccc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddcf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddd1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xa0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddd40
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], 2
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddd68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ddd88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x60]
call fcn.004d05c0
test eax, eax
jne 0x4dd6df
mov ebx, dword [esp + 0xa8]
xor edi, edi
or ebp, 0xffffffff
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4dddd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x74]
call fcn.004d04e0
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.004d04e0
lea eax, [ebx - 0x10]
mov dword [esp + 0xa0], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4dde0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8