Function at 0x4324f0
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 0x43281a
jmp 0x432530
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.004a00bc
mov eax, dword [ebp + 0x3c]
lea edi, [esi*4]
add eax, edi
mov eax, dword [eax]
add esp, 0x14
cmp eax, ebx
je 0x43259b
lea ecx, [eax + 4]
jmp 0x43259d
xor ecx, ecx
lea edx, [esp + 0x20]
push edx
call fcn.004321f0
test eax, eax
je 0x4325f4
mov eax, dword [esp + 0x530]
cmp eax, ebx
je 0x432804
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4325db
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432804
cmp eax, ebx
jne 0x432804
mov esi, dword [esp + 0x530]
call fcn.0045f130
jmp 0x432804
lea ecx, [esp + 0x20]
call fcn.0045f950
mov eax, dword [ebp + 0x3c]
mov esi, dword [eax + edi]
add eax, edi
cmp esi, ebx
je 0x432625
lea eax, [esi + 4]
push str.preset
push eax
call section..text
add esp, 8
cmp eax, ebx
je 0x432625
sub eax, esi
sub eax, 4
jmp 0x432628
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.00431a80
mov esi, dword [ebp + 0x3c]
mov eax, dword [esi + edi]
add esi, edi
cmp eax, ebx
jne 0x43264e
xor esi, esi
jmp 0x432661
movzx ecx, byte [eax]
cmp ecx, 1
jbe 0x43265c
push esi
call fcn.0043bf30
mov esi, dword [esi]
add esi, 4
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x432685
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x432670
sub eax, edx
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.0043c200
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x432692
lea eax, [ebp + 4]
jmp 0x432694
xor eax, eax
push eax
lea eax, [esp + 0x18]
call fcn.0043c000
lea eax, [esp + 0x14]
push eax
call fcn.00432440
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, ebx
je 0x4326b8
lea eax, [esi + 4]
jmp 0x4326ba
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.004a0108
add esp, 0x18
cmp esi, ebx
je 0x4326fc
lea eax, [esi + 4]
jmp 0x4326fe
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.004a0108
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43276f
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x38], ebx
je 0x43276f
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 0x432798
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x43278f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432798
cmp eax, ebx
jne 0x432798
call fcn.0045f130
cmp ebp, ebx
je 0x4327c7
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4327b8
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4327c3
cmp eax, ebx
jne 0x4327c3
mov esi, ebp
call fcn.0045f130
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x530]
cmp eax, ebx
je 0x432800
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4327f0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432800
cmp eax, ebx
jne 0x432800
mov esi, dword [esp + 0x530]
call fcn.0045f130
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 0x432530
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049ca20
add esp, 0x530
ret 4