Function at 0x1007bd9
Capabilities:
Check if file exists
Initialize winhttp library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x1007abb
xor eax, eax
jmp 0x1007d19
push esi
push 0x1002c30
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
cmp dword [ebx + 0x24], edi
jbe 0x1007b84
mov dword [ebp + 8], edi
mov esi, dword [ebx + 0x28]
add esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1007b11
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x1007b0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1002be0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x10
and dword [esi + 0x28], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1007b42
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x1007b3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1002b90
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x10
and dword [esi + 0x24], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1007b73
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x1007b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1002b40
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x10
and dword [esi + 0x20], 0
add dword [ebp + 8], 0x36c
inc edi
cmp edi, dword [ebx + 0x24]
jb 0x1007ada
lea esi, [ebx + 0x1c]
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0xc], esi
cmp eax, edi
je 0x1007bb6
push 0xafc8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x1007bb6
push eax
push 0x1002b04
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x1007bc6
push eax
call fcn.0100a4d2
mov dword [ebx + 8], edi
mov eax, dword [ebx + 0x3c]
cmp eax, edi
je 0x1007bd6
push eax
call fcn.0100a4d2
mov dword [ebx + 0x3c], edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x24], edi
jbe 0x1007cba
mov dword [ebp - 8], edi
mov edi, dword [ebx + 0x28]
add edi, dword [ebp - 8]
mov esi, edi
call fcn.01004ac3
lea esi, [edi + 4]
call fcn.01004ac3
lea esi, [edi + 8]
call fcn.01004ac3
lea esi, [edi + 0xc]
call fcn.01004ac3
lea esi, [edi + 0x10]
call fcn.01004ac3
lea esi, [edi + 0x14]
call fcn.01004ac3
lea esi, [edi + 0x18]
call fcn.01004ac3
and dword [ebp + 8], 0
lea esi, [edi + 0x364]
cmp dword [esi], 0
jbe 0x1007c4c
mov eax, dword [edi + 0x368]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*8]
call fcn.0100a4d2
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi]
jb 0x1007c31
push dword [edi + 0x368]
call fcn.0100a4d2
test byte [ebx + 0xc], 1
jne 0x1007c9f
lea esi, [edi + 0x2c]
cmp byte [esi], 0
je 0x1007c8e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1007c8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [ebp - 4]
push 0x1002ab8
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x14
add edi, 0x14c
cmp byte [edi], 0
je 0x1007c9f
push edi
call fcn.01005d0d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x36c
cmp eax, dword [ebx + 0x24]
jb 0x1007be5
mov esi, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [ebx + 0x28]
cmp eax, edi
je 0x1007cca
push eax
call fcn.0100a4d2
mov dword [ebx + 0x28], edi
xor ebx, ebx
mov eax, dword [esi]
cmp eax, edi
je 0x1007cfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1007cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1002a7c
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x10
mov dword [esi], edi
inc ebx
add esi, 4
cmp ebx, 2
jb 0x1007ccc
push 0x1002a64
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 4