Function at 0x432780
Capabilities:
Check if file exists
Download url
Get file attributes
Receive data

Disassembly:
sub esp, 0x530
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x53c]
push esi
xor esi, esi
xor ebx, ebx
test dword [ebp + 0x40], 0xfffffffe
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], esi
jbe 0x432aaa
jmp 0x4327c0
lea eax, [esp + 0x42e]
push eax
lea ecx, [esp + 0x331]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x234]
push eax
push 0x4cb498
mov dword [esp + 0x544], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x23c], bl
mov byte [esp + 0x240], bl
mov byte [esp + 0x341], bl
mov byte [esp + 0x442], bl
call fcn.004a055c
mov eax, dword [ebp + 0x3c]
lea edi, [esi*4]
add eax, edi
mov eax, dword [eax]
add esp, 0x14
cmp eax, ebx
je 0x43282b
lea ecx, [eax + 4]
jmp 0x43282d
xor ecx, ecx
lea edx, [esp + 0x20]
push edx
call fcn.00432480
test eax, eax
je 0x432884
mov eax, dword [esp + 0x530]
cmp eax, ebx
je 0x432a94
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x43286b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432a94
cmp eax, ebx
jne 0x432a94
mov esi, dword [esp + 0x530]
call fcn.0045f5a0
jmp 0x432a94
lea ecx, [esp + 0x20]
call fcn.0045fdc0
mov eax, dword [ebp + 0x3c]
mov esi, dword [eax + edi]
add eax, edi
cmp esi, ebx
je 0x4328b5
lea eax, [esi + 4]
push str.preset
push eax
call section..text
add esp, 8
cmp eax, ebx
je 0x4328b5
sub eax, esi
sub eax, 4
jmp 0x4328b8
or eax, 0xffffffff
cmp eax, 0xffffffff
setne cl
push ebx
movzx edx, cl
push edx
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.00431d10
mov esi, dword [ebp + 0x3c]
mov eax, dword [esi + edi]
add esi, edi
cmp eax, ebx
jne 0x4328de
xor esi, esi
jmp 0x4328f1
movzx ecx, byte [eax]
cmp ecx, 1
jbe 0x4328ec
push esi
call fcn.0043c230
mov esi, dword [esi]
add esi, 4
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x432915
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x432900
sub eax, edx
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.0043c500
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x432922
lea eax, [ebp + 4]
jmp 0x432924
xor eax, eax
push eax
lea eax, [esp + 0x18]
call fcn.0043c300
lea eax, [esp + 0x14]
push eax
call fcn.004326d0
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, ebx
je 0x432948
lea eax, [esi + 4]
jmp 0x43294a
xor eax, eax
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea ecx, [esp + 0x42e]
push ecx
lea edx, [esp + 0x331]
push edx
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x30]
push 0x208
push edx
call fcn.004a05a8
add esp, 0x18
cmp esi, ebx
je 0x43298c
lea eax, [esi + 4]
jmp 0x43298e
xor eax, eax
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
lea edx, [esp + 0x42e]
push edx
lea eax, [esp + 0x331]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x30]
push 0x208
push eax
call fcn.004a05a8
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4329ff
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x38], ebx
je 0x4329ff
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3c]
add eax, edi
push eax
call edx
cmp esi, ebx
je 0x432a28
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x432a1f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432a28
cmp eax, ebx
jne 0x432a28
call fcn.0045f5a0
cmp ebp, ebx
je 0x432a57
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x432a48
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432a53
cmp eax, ebx
jne 0x432a53
mov esi, ebp
call fcn.0045f5a0
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x530]
cmp eax, ebx
je 0x432a90
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x432a80
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432a90
cmp eax, ebx
jne 0x432a90
mov esi, dword [esp + 0x530]
call fcn.0045f5a0
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x40]
inc esi
shr eax, 1
mov dword [esp + 0x1c], esi
cmp esi, eax
jb 0x4327c0
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049ceb0
add esp, 0x530
ret 4