Function at 0x45f210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1278
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5061ec]
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 dword [ebp - 0xa4], esi
mov ebx, dword [ebp + 8]
mov edi, dword [0x50b538]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xcc], edi
test ebx, ebx
je 0x45f2d0
mov esi, ebx
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45f270
sub esi, ecx
sar esi, 1
je 0x45f2ca
lea eax, [esi*2 + 0xe]
push eax
call fcn.00415380
add esp, 4
test eax, eax
je 0x45f2ca
mov dword [eax + 4], esi
lea edi, [eax + 0xc]
mov dword [eax + 8], esi
add esi, esi
mov dword [eax], 1
xor eax, eax
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xcc], edi
mov word [esi + edi], ax
lea eax, [esi + 2]
cmp eax, esi
jb 0x45f2ca
push esi
push ebx
push edi
call fcn.004a70c0
add esp, 0xc
mov esi, dword [ebp - 0xa4]
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f327
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xcc]
mov dword [ebp - 0x9c], eax
add edi, 0xfffffff4
mov dword [ebp - 4], 1
cmp edi, dword [0x50b534]
je 0x45f894
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x45f894
push edi
call fcn.00433990
add esp, 4
jmp 0x45f894
mov esi, dword [0x50b538]
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xcc]
push 0x3a
push eax
call fcn.00404210
add esp, 0xc
or ebx, 0xffffffff
cmp eax, 1
jne 0x45f473
mov esi, dword [0x50b538]
push 0x14
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0x98], esi
call fcn.00415380
add esp, 4
test eax, eax
je 0x45f3e3
lea esi, [eax + 0xc]
mov dword [eax], 1
mov dword [eax + 4], 3
mov dword [eax + 8], 3
xor eax, eax
mov word [esi + 6], ax
mov eax, dword [0x4defd0]
mov dword [esi], eax
mov ax, word [0x4defd4]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0x98], esi
mov word [esi + 4], ax
mov eax, dword [esi - 8]
lea ecx, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x9c], eax
call fcn.00404cd0
mov esi, dword [ebp - 0xbc]
test al, al
je 0x45f433
mov edi, dword [ebp - 0x9c]
add edi, edi
push edi
push dword [ebp - 0xc8]
push esi
call fcn.004a70c0
mov eax, dword [ebp - 0x9c]
add esp, 0xc
mov dword [esi - 8], eax
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc8]
add ecx, 0xfffffff4
mov byte [ebp - 4], 6
cmp ecx, dword [0x50b534]
je 0x45f45c
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45f45c
push ecx
call fcn.00433990
add esp, 4
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.00404b00
jmp 0x45f4a8
cmp eax, 2
jne 0x45f8b8
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xbc]
call fcn.00404b00
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xc0]
add eax, 4
push eax
call fcn.00404b00
mov esi, dword [ebp - 0xbc]
mov dword [ebp - 0xa0], 0
mov ecx, dword [0x50b5e0]
lea eax, [ebp - 0xa0]
push 7
push eax
mov byte [ebp - 4], 0xe
call fcn.0041b3f0
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
jne 0x45f558
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x45f500
push dword [ebp - 0xb4]
push eax
call fcn.0042b420
push dword [ebp - 0xb8]
call fcn.00433990
add esp, 0xc
mov ecx, dword [ebp - 0xc0]
add ecx, 0xfffffff4
mov byte [ebp - 4], 0x10
cmp ecx, dword [0x50b534]
je 0x45f529
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45f529
push ecx
call fcn.00433990
add esp, 4
add esi, 0xfffffff4
mov byte [ebp - 4], 0x11
cmp esi, dword [0x50b534]
je 0x45f54c
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45f54c
push esi
call fcn.00433990
add esp, 4
mov dword [ebp - 4], 0x12
jmp 0x45f9b2
mov edi, dword [ebp - 0xc0]
lea edx, [ebp - 0xc4]
push 0
push edx
mov dword [ebp - 0xc4], 0
mov eax, dword [ecx]
push edi
push esi
call dword [eax + 0x38]
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x98], edx
test edx, edx
jne 0x45f645
mov ecx, dword [ebp - 0xa0]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x45f5a8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45f5a8
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x45f5d0
push dword [ebp - 0xb4]
push eax
call fcn.0042b420
push dword [ebp - 0xb8]
call fcn.00433990
add esp, 0xc
add edi, 0xfffffff4
mov byte [ebp - 4], 0x14
cmp edi, dword [0x50b534]
je 0x45f5f3
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45f5f3
push edi
call fcn.00433990
add esp, 4
add esi, 0xfffffff4
mov byte [ebp - 4], 0x15
cmp esi, dword [0x50b534]
je 0x45f616
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45f616
push esi
call fcn.00433990
add esp, 4
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff4
mov dword [ebp - 4], 0x16
cmp eax, dword [0x50b534]
je 0x45f9cf
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45f9cf
push eax
jmp 0x45f9c7
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0x17
cmp edx, 0x80
jbe 0x45f66e
push edx
call fcn.0048e3fb
mov edx, dword [ebp - 0x98]
add esp, 4
mov ecx, eax
jmp 0x45f674
lea ecx, [ebp - 0x90]
mov eax, 0x80
mov dword [ebp - 0x94], ecx
cmp edx, eax
cmova eax, edx
push eax
push 0
push ecx
call fcn.004a7c50
mov ecx, dword [ebp - 0xa0]
add esp, 0xc
mov eax, dword [ecx]
push 0
push dword [ebp - 0xc4]
push dword [ebp - 0x94]
push edi
push esi
call dword [eax + 0x3c]
test eax, eax
je 0x45f793
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x45f6da
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x45f6da
push eax
call fcn.0048e404
add esp, 4
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0xa0]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x45f6f6
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45f6f6
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 0x18
test eax, eax
je 0x45f71e
push dword [ebp - 0xb4]
push eax
call fcn.0042b420
push dword [ebp - 0xb8]
call fcn.00433990
add esp, 0xc
add edi, 0xfffffff4
mov byte [ebp - 4], 0x19
cmp edi, dword [0x50b534]
je 0x45f741
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45f741
push edi
call fcn.00433990
add esp, 4
add esi, 0xfffffff4
mov byte [ebp - 4], 0x1a
cmp esi, dword [0x50b534]
je 0x45f764
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45f764
push esi
call fcn.00433990
add esp, 4
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff4
mov dword [ebp - 4], 0x1b
cmp eax, dword [0x50b534]
je 0x45f9cf
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45f9cf
push eax
jmp 0x45f9c7
mov ecx, dword [ebp - 0xa4]
push dword [ebp - 0xc4]
push dword [ebp - 0x94]
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x45f7da
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x45f7da
push eax
call fcn.0048e404
add esp, 4
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0xa0]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x45f7f6
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45f7f6
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x45f81e
push dword [ebp - 0xb4]
push eax
call fcn.0042b420
push dword [ebp - 0xb8]
call fcn.00433990
add esp, 0xc
add edi, 0xfffffff4
mov byte [ebp - 4], 0x1d
cmp edi, dword [0x50b534]
je 0x45f841
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45f841
push edi
call fcn.00433990
add esp, 4
add esi, 0xfffffff4
mov byte [ebp - 4], 0x1e
cmp esi, dword [0x50b534]
je 0x45f864
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45f864
push esi
call fcn.00433990
add esp, 4
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff4
mov dword [ebp - 4], 0x1f
cmp eax, dword [0x50b534]
je 0x45f88e
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45f88e
push eax
call fcn.00433990
add esp, 4
mov esi, dword [ebp - 0xa4]
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x45f9d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
jmp 0x45f9d4
mov eax, dword [0x50b538]
mov dword [ebp - 0x9c], eax
push dword [ebp - 0x98]
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 7
push str.gifskin
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00404df0
add esp, 0x10
mov ecx, dword [ebp - 0x98]
or ebx, 0xffffffff
add ecx, 0xfffffff4
mov byte [ebp - 4], 8
cmp ecx, dword [0x50b534]
je 0x45f914
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45f914
push ecx
call fcn.00433990
add esp, 4
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff4
mov byte [ebp - 4], 9
cmp ecx, dword [0x50b534]
je 0x45f93d
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45f93d
push ecx
call fcn.00433990
add esp, 4
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x45f965
push dword [ebp - 0xb4]
push eax
call fcn.0042b420
push dword [ebp - 0xb8]
call fcn.00433990
add esp, 0xc
lea ecx, [esi - 0xc]
mov byte [ebp - 4], 0xb
cmp ecx, dword [0x50b534]
je 0x45f988
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45f988
push ecx
call fcn.00433990
add esp, 4
add esi, 0xfffffff4
mov byte [ebp - 4], 0xc
cmp esi, dword [0x50b534]
je 0x45f9ab
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45f9ab
push esi
call fcn.00433990
add esp, 4
mov dword [ebp - 4], 0xd
add edi, 0xfffffff4
cmp edi, dword [0x50b534]
je 0x45f9cf
lock xadd dword [edi], ebx
dec ebx
test ebx, ebx
jg 0x45f9cf
push edi
call fcn.00433990
add esp, 4
mov edi, 1
mov eax, edi
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.0048e386
mov esp, ebp
pop ebp
ret 8