Function at 0x45e680
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bea8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x45e937
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e937
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x45e701
call fcn.0050acc0
cmp dword [0x6412b4], 0x400
jl 0x45e701
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x643688]
test al, 1
jne 0x45e73d
or eax, 1
mov dword [0x64368c], 0
push 0x5a9f00
mov dword [0x643688], eax
mov dword [0x643690], 0
mov dword [0x643694], 0
call fcn.00551ad4
add esp, 4
cmp dword [0x6353bc], 0
je 0x45e8e4
call fcn.0040bce0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x45e766
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
call fcn.0050acc0
or edi, 0xffffffff
cmp dword [0x6412b4], 0x400
jl 0x45e872
lea ecx, [ebp - 0x10]
call fcn.0045ded0
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [ebp - 0x10]
sub ecx, dword [esi - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
jge 0x45e7c6
push 0x104
lea ecx, [ebp + 8]
call fcn.0040c110
mov esi, dword [ebp + 8]
push dword [ebp - 0x14]
push 0x104
push esi
push 0x5b5ab0
push str.imagethumb
push str.dtfence
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x45e868
cmp eax, dword [esi - 8]
jg 0x45e868
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov byte [ebp - 4], cl
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
cmp dword [esi - 0xc], ecx
jne 0x45e850
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45e829
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x45e937
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45e937
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e882
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45e882
push 0x80070057
call fcn.0040c390
push 0x5b5ab0
lea ecx, [ebp + 8]
call fcn.0040c280
mov esi, dword [ebp + 8]
push 0x5bc164
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
push 0x64368c
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0050d2b0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x14]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e8c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x45e8e4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
mov dword [0x6353bc], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ecx, dword [0x64368c]
mov ebx, eax
mov eax, dword [0x643690]
xor esi, esi
sub eax, ecx
sar eax, 2
test eax, eax
je 0x45e937
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ecx + esi*4]
push ebx
call edi
test eax, eax
je 0x45e6e8
mov eax, dword [0x643690]
inc esi
mov ecx, dword [0x64368c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x45e914
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8