Function at 0x4065c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42e8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x73c
mov eax, dword [0x43ec10]
push ebx
mov dword [esp + 0x73c], eax
push esi
push edi
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.cache_]
mov cx, word [0x430904]
mov dl, byte [0x430906]
mov dword [esp + 0xe4], eax
mov word [esp + 0xe8], cx
xor eax, eax
mov byte [esp + 0xea], dl
mov ecx, 0x3f
lea edi, [esp + 0xeb]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push ebx
mov esi, eax
push 0xffffffffffffffa8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406691
mov esi, dword [esp + 0x758]
push 0x1e
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push str.http:__www.productbrander.com_
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004057e0
jmp 0x4068f9
push ebx
lea edx, [esp + 0x14]
push edx
push 0x58
lea eax, [esp + 0x1f4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, str.m_agi_c_tex_t
lea esi, [esp + 0x1e8]
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4066ed
mov esi, dword [esp + 0x758]
push 0x1e
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push str.http:__www.productbrander.com_
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004057e0
jmp 0x4068f9
lea eax, [esp + 0x240]
push 0x5c
push eax
call fcn.00411630
add esp, 8
cmp eax, ebx
je 0x4067b9
cmp dword [esp + 0x23c], ebx
jne 0x406755
mov ecx, dword [str.cache_aff.txt]
mov edx, dword [0x430ff0]
mov dword [esp + 0xe4], ecx
mov ecx, dword [0x430ff4]
mov dword [esp + 0xe8], edx
mov dx, word [0x430ff8]
mov dword [esp + 0xec], ecx
mov cl, byte [0x430ffa]
mov word [esp + 0xf0], dx
mov byte [esp + 0xf2], cl
jmp 0x406789
mov edx, dword [str.cache_aff2.txt]
mov ecx, dword [0x430fe0]
mov dword [esp + 0xe4], edx
mov edx, dword [0x430fe4]
mov dword [esp + 0xe8], ecx
mov ecx, dword [0x430fe8]
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
lea ecx, [esp + 0xe4]
mov byte [eax + 1], bl
mov esi, ecx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x406795
sub ecx, esi
mov edx, ecx
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4067a1
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
push edi
push 0x1b6
push edi
lea edx, [esp + 0x24c]
push edx
lea ecx, [esp + 0x24]
call fcn.004063d0
cmp dword [esp + 0x74], ebx
mov dword [esp + 0x750], edi
je 0x4068c1
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x1c], 1
jne 0x4068c1
push 0xa
lea ecx, [esp + eax + 0x18]
call fcn.004048c0
lea ecx, [esp + 0x344]
push eax
push 0x400
push ecx
lea ecx, [esp + 0x20]
call fcn.00404e70
lea edx, [esp + 0x344]
push str.affidaff
push edx
call fcn.00411020
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4068a5
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0xcc]
mov byte [esi], bl
call fcn.00405d80
lea ecx, [esp + 0x1fc]
push ecx
push eax
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0x75c], 2
call fcn.00406320
add esi, 8
push esi
mov esi, dword [esp + 0x768]
push eax
push esi
mov byte [esp + 0x768], 3
call fcn.00406320
add esp, 0x18
lea ecx, [esp + 0xac]
mov dword [esp + 0xc], edi
call fcn.00404dd0
lea ecx, [esp + 0xc8]
call fcn.00404dd0
jmp 0x4068d8
cmp byte [esp + 0x344], bl
mov esi, dword [esp + 0x758]
mov ecx, esi
je 0x4068ca
lea eax, [esp + 0x344]
push eax
jmp 0x4068cf
mov esi, dword [esp + 0x758]
mov ecx, esi
push str.http:__www.productbrander.com_
call fcn.00405d80
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x78]
mov byte [esp + 0x750], bl
call fcn.00406510
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0x430da8
call fcn.004205c7
mov ecx, dword [esp + 0x748]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x73c]
pop ebx
call fcn.00410a9d
add esp, 0x748
ret