Function at 0x4324f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3145
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4f4214]
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 ebx, ecx
mov eax, dword [ebx + 0x2f0]
mov eax, dword [eax - 0xc]
lea esi, [ebx + 0x2f0]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], esi
test eax, eax
jne 0x4325f4
lea edi, [ebp - 0x134]
call fcn.00434b30
mov dword [ebp - 4], 0
mov edi, esi
call fcn.00402630
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x134]
push ecx
push esi
mov ecx, 1
call fcn.0042ee90
mov dword [ebp - 4], 2
push eax
mov ecx, 0x4d5cf0
call fcn.0041fbf0
add esp, 4
mov bl, al
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x4325ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4325e0
push 1
push 0x4d5cf0
mov ebx, esi
call fcn.00420160
push 0xa
push str.config.ini
mov ebx, esi
call fcn.00420160
mov ebx, dword [ebp - 0x138]
mov ecx, dword [ebx + 0x2e8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0xa8]
push eax
call edx
mov dword [ebp - 4], 4
mov eax, dword [eax]
lea ecx, [ebp - 0x12c]
xor edx, edx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x130]
mov dword [ebp - 0x130], ecx
mov word [ebp - 0x12c], dx
call fcn.00451c40
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
cmp eax, ecx
je 0x432652
push eax
call fcn.0049c78c
add esp, 4
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4327b9
mov ebx, dword [ebx + 0x2e8]
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, ebx
call edx
mov byte [ebp - 4], 7
mov edx, dword [eax]
test edx, edx
jne 0x43268b
xor eax, eax
jmp 0x43269f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432690
sub eax, esi
sar eax, 1
push edx
push 0x4f9f60
mov ebx, eax
call fcn.004026a0
mov bl, 6
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
cmp eax, ecx
je 0x4326ca
push eax
call fcn.0049c78c
add esp, 4
mov edx, dword [ebp - 0x138]
mov ecx, dword [edx + 0x2e8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0xa8]
push edx
call eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x13c]
mov ecx, dword [ecx]
mov eax, dword [eax]
push ecx
push eax
push str.savepath
push str.DuoDuoMain
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
cmp eax, edx
je 0x432720
push eax
call fcn.0049c78c
add esp, 4
mov ebx, dword [ebp - 0x138]
mov ecx, dword [ebx + 0x2ec]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0xa8]
push eax
call edx
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x13c]
mov ecx, dword [edi]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ecx
push eax
push str.downloadspeed
push str.DuoDuoMain
call esi
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
cmp eax, ecx
je 0x432779
push eax
call fcn.0049c78c
add esp, 4
xor eax, eax
lea edx, [ebp - 0x20]
push 0x4d8c40
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0049db5e
mov eax, dword [ebx + 0x2f4]
add esp, 8
cmp byte [eax + 0x958], 0
je 0x432906
push 0x4d8c40
lea ecx, [ebp - 0x20]
push ecx
jmp 0x432938
mov esi, dword [ebp - 0x130]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4327c4
sub eax, edx
sar eax, 1
cmp eax, 3
jle 0x4328b8
movzx eax, word [esi]
push eax
call fcn.0049e8a7
add esp, 4
test eax, eax
je 0x4328b8
mov eax, dword [ebp - 0x130]
cmp word [eax + 2], 0x3a
jne 0x4328b8
cmp word [eax + 4], 0x5c
jne 0x4328b8
push eax
call fcn.00436b50
add esp, 4
test eax, eax
je 0x4328b8
mov ecx, dword [ebx + 0x2e8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0xa8]
push eax
call edx
mov byte [ebp - 4], 9
mov edx, dword [eax]
mov edi, 0x4f9f60
call fcn.00415390
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
cmp eax, ecx
je 0x43285e
push eax
call fcn.0049c78c
add esp, 4
mov ecx, dword [ebx + 0x2e8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0xa8]
push eax
call edx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x13c]
mov ecx, dword [ecx]
mov eax, dword [eax]
push ecx
push eax
push str.savepath
push str.DuoDuoMain
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
cmp eax, edx
je 0x432726
push eax
call fcn.0049c78c
add esp, 4
jmp 0x432726
lea esi, [ebp - 0x134]
call fcn.00434d50
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
mov ecx, dword [ebx + 0x2e8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x432726
mov edx, dword [ebx + 0x2f8]
cmp byte [edx + 0x958], 0
je 0x432920
push 0x4d8c44
lea eax, [ebp - 0x20]
push eax
jmp 0x432938
mov ecx, dword [ebx + 0x2fc]
cmp byte [ecx + 0x958], 0
je 0x432940
push 0x4d8c0c
lea edx, [ebp - 0x20]
push edx
call fcn.0049db5e
add esp, 8
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4d8c10
push str.DuoDuoMain
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x432973
push eax
call fcn.0049c78c
add esp, 4
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.0049c72a
mov esp, ebp
pop ebp
ret