Function at 0x413af0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x487bef
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ab13c]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x33f4]
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x10], bl
mov dword [esp + 0x20], eax
jne 0x413b9d
call fcn.00412760
cmp al, bl
jne 0x413b9d
lea ecx, [esp + 0x18]
push ecx
call fcn.004358e0
add esp, 4
mov ecx, dword [eax]
mov dword [esp + 0xec], ebx
call fcn.00427180
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov dword [esp + 0xec], 0xffffffff
je 0x413b92
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x413b92
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x413b92
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
push str.CDownloadClient::CDownloadDispatcher__ForceExit__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1200]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413bb2
sub eax, edx
push eax
lea ecx, [esp + 0x1204]
push ecx
lea ecx, [esi + 0x14]
call fcn.00402288
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x413d72
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xf8]
push ecx
push eax
call edx
mov ebp, eax
cmp ebp, ebx
jl 0x413d72
sub esp, 0x1c
mov ecx, esp
lea eax, [esp + 0x218]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x413c18
sub eax, edi
push eax
lea eax, [esp + 0x21c]
push eax
call fcn.00402288
mov ecx, esi
call fcn.00411f10
cmp al, bl
jne 0x413c59
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xf8]
push edx
lea edx, [esp + 0x200]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ebp, eax
cmp ebp, ebx
jl 0x413d72
lea ecx, [esi + 0x3c]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c], bl
call fcn.00410380
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0xf0], 1
call fcn.0040407f
mov edi, eax
lea eax, [esp + 0x1fc]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xf0], 2
call fcn.0040407f
mov ecx, dword [esp + 0x20]
push ecx
push edi
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xf8], 3
call fcn.004121c0
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xf0], 4
mov dword [esp + 0x6c], edx
call fcn.00412130
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0xf4], 5
call fcn.00413960
lea ecx, [esp + 0x68]
call fcn.00411ec0
lea ecx, [esp + 0xa8]
call fcn.00411e70
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x413d28
mov edx, dword [esp + 0x44]
push edx
call fcn.00451909
add esp, 4
cmp dword [esp + 0x3c], esi
mov edi, 0xf
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x413d4c
mov eax, dword [esp + 0x28]
push eax
call fcn.00451909
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0xec], 0xffffffff
call fcn.00410330
mov eax, dword [esp + 0x14]
jmp 0x413d74
xor eax, eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret 0x3304