Function at 0x4554f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5482
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
lea eax, [esp + 0x15c]
mov edi, ecx
call fcn.0041b820
xor ebx, ebx
mov dword [esp + 0x250], ebx
mov eax, dword [edi + 0x408]
mov edx, dword [eax + 0x70]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x455555
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x164]
call fcn.0043d0d0
mov ecx, dword [edi + 0x408]
mov ecx, dword [ecx + 0x48]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x455580
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x180]
call fcn.0043d0d0
mov eax, dword [edi + 0x408]
mov dword [esp + 0x21c], ebx
mov dword [esp + 0x220], ebx
add dword [eax + 0x10], 1
mov eax, dword [edi + 0x408]
lea edx, [eax + 0x54]
lea ebx, [eax + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00439020
add esp, 8
mov byte [esp + 0x250], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4555f5
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x455615
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.0040d0b0
add eax, 0x10
mov dword [esi], eax
call fcn.00466050
add esp, 4
xor ebx, ebx
mov byte [esp + 0x250], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45563e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x408]
mov dword [ecx + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [edi + 0x408]
mov dword [edx + 0x1c], eax
cmp dword [esp + 0x174], 8
mov eax, dword [esp + 0x160]
jae 0x45566e
lea eax, [esp + 0x160]
push ebx
lea ecx, [esp + 0xa8]
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0xa8], ecx
call fcn.0043bc80
mov byte [esp + 0x250], 2
mov edx, dword [esp + 0xa0]
mov eax, edx
mov dword [esp + 0x13c], 0xf
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4556b7
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x12c]
call fcn.0040d220
mov byte [esp + 0x250], 4
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0xa4]
cmp eax, edx
je 0x4556f3
push eax
call fcn.00489176
add esp, 4
cmp dword [esp + 0x190], 8
mov eax, dword [esp + 0x17c]
jae 0x45570b
lea eax, [esp + 0x17c]
push ebx
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ecx
call fcn.0043bc80
mov byte [esp + 0x250], 5
mov edx, dword [esp + 0x1c]
mov eax, edx
mov dword [esp + 0x158], 0xf
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x455748
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x148]
call fcn.0040d220
mov byte [esp + 0x250], 7
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x45577e
push eax
call fcn.00489176
add esp, 4
mov edx, dword [esp + 0x144]
mov eax, 0x10
cmp dword [esp + 0x158], eax
jae 0x45579a
lea edx, [esp + 0x144]
cmp dword [esp + 0x13c], eax
mov eax, dword [esp + 0x128]
jae 0x4557b1
lea eax, [esp + 0x128]
mov ecx, dword [edi + 0x3f4]
mov esi, dword [ecx]
push ebx
push 0x4b2efe
push 1
push edx
push eax
mov eax, dword [esi + 8]
call eax
mov ecx, dword [edi + 0x3f4]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x10]
push esi
call eax
test eax, eax
je 0x4557e5
mov ecx, dword [edi + 0x408]
mov dword [ecx + 0xc], esi
mov dword [edi + 0x534], 0xb
mov edi, 0x10
cmp dword [esp + 0x158], edi
jb 0x45580d
mov edx, dword [esp + 0x144]
push edx
call fcn.00487c06
add esp, 4
cmp dword [esp + 0x13c], edi
mov esi, 0xf
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
jb 0x455840
mov eax, dword [esp + 0x128]
push eax
call fcn.00487c06
add esp, 4
mov dword [esp + 0x13c], esi
lea esi, [esp + 0x15c]
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
call fcn.00421c70
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret