Function at 0x1005d020
Capabilities:
Access peb ldr_data
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f781
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x30], ebx
call fcn.10023f70
mov dword [esi + 0x34], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [ebp - 4], 3
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [edi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 4
jge 0x1005d0a0
push 0x104
lea ecx, [ebp - 0x14]
call fcn.100029f0
mov edi, dword [ebp - 0x14]
mov ecx, dword [0x10098990]
push 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, ebx
jne 0x1005d0bb
xor eax, eax
jmp 0x1005d0cf
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005d0c0
sub eax, edx
js 0x1005d203
cmp eax, dword [edi - 8]
jg 0x1005d203
push 0x5c
mov dword [edi - 0xc], eax
push edi
mov byte [eax + edi], 0
call fcn.10069f52
add esp, 8
cmp eax, ebx
jne 0x1005d0f3
or eax, 0xffffffff
jmp 0x1005d0f5
sub eax, edi
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.10008ae0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
push str._sdlmgr.dll
push ecx
mov byte [ebp - 4], 5
call fcn.10004e20
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005d13b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.1000fc80
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DM_GetTimeStamp
push eax
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x40]
push str.DM_GetTaskCount
push eax
call edi
mov ecx, dword [esi + 0x40]
push str.DM_GetTaskInfo
push ecx
mov dword [esi + 0x48], eax
call edi
mov edx, dword [esi + 0x40]
push str.DM_DeleteTask
push edx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x40]
push str.DM_ResumeTask
push eax
call edi
mov ecx, dword [esi + 0x40]
push str.DM_DownloadAgain
push ecx
mov dword [esi + 0x54], eax
call edi
mov edx, dword [esi + 0x40]
push str.DM_OpenTaskFile
push edx
mov dword [esi + 0x58], eax
call edi
mov ecx, dword [esi + 0x40]
test ecx, ecx
mov dword [esi + 0x5c], eax
je 0x1005d1c8
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1005d1c8
test eax, eax
mov dword [0x10098980], 1
jne 0x1005d1d2
mov dword [0x10098980], 0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005d216
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10001330
mov eax, 0x1005d213
ret
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret