Function at 0x4512b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfbab
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebx + 0xf8]
mov dword [ebp - 0x14], 0xffffffff
cmp ecx, 1
jge 0x4512fb
mov dword [ebp - 0x18], 0
jmp 0x451318
mov eax, dword [ebx + 0xe8]
test eax, eax
js 0x451309
cmp eax, ecx
jl 0x45130b
xor eax, eax
imul eax, eax, 0x52
lea eax, [eax + ebx + 0xfc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
test ecx, ecx
jle 0x451418
lea edi, [ebx + 0xfc]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
jle 0x451359
movzx edx, word [edi]
add esi, 0xc
nop
cmp word [esi], dx
jne 0x451351
mov bl, byte [esi + 2]
cmp bl, byte [edi + 2]
je 0x451465
inc eax
add esi, 0x52
cmp eax, ecx
jl 0x451340
movzx edx, byte [edi + 2]
movzx eax, word [edi]
push edx
push eax
lea ecx, [ebp - 0x8c]
call fcn.00434870
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 5
mov dword [ebp - 0x70], edi
call fcn.0043d290
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4513b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4513ed
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.0043d290
mov eax, dword [eax]
push eax
call fcn.005bf5fa
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4513ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.00430810
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
inc eax
add edi, 0x52
mov dword [ebp - 0x20], eax
cmp eax, dword [ebx + 0xf8]
jl 0x45132d
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebx + 0xf0]
call fcn.0045f760
cmp dword [ebp - 0x14], 0xffffffff
jne 0x451434
mov dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebx + 0x235ac]
mov ecx, 0x208
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0xf0]
call fcn.00460f50
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x18], edi
jne 0x45146d
mov dword [ebp - 0x14], eax
push edi
push esi
call fcn.0041a750
add esp, 8
test al, al
jne 0x4513ff
xor eax, eax
mov ebx, vtable.CList_struct_tagPrgItem__struct_tagPrgItem__.0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0xa
movzx edx, byte [esi + 2]
mov dword [ebp - 4], eax
movzx eax, word [esi]
push edx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00434870
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], esi
call fcn.00434950
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00430710
add esp, 8
test al, al
je 0x4514e6
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004340b0
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x6c]
call fcn.0043d290
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0041d5f0
add esp, 8
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x23de8
call fcn.0045b1f0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45155d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.00430810
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4c], ebx
cmp eax, ecx
je 0x451586
lea esp, [esp]
mov eax, dword [eax]
cmp eax, ecx
jne 0x451580
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x38]
call fcn.004cb942
jmp 0x4513ff