Function at 0x477180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0b22
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esp + 0x8c]
mov dword [esp + 0x14], esi
call fcn.004710a0
xor ebx, ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x18], ebx
cmp dword [ebp + 8], ebx
jg 0x477228
cmp dword [esp + 0xa0], 8
jb 0x4771fe
mov eax, dword [esp + 0x8c]
push eax
call fcn.0048a131
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
mov esi, edi
cmp dword [esi + 0x7c], ebx
je 0x4771e4
mov eax, dword [esi + 0x78]
mov eax, dword [eax]
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x3c], cx
mov edi, 7
add eax, 8
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
call fcn.00401a8e
mov byte [esp + 0xf0], 1
push 0xffffffffffffffff
xor edx, edx
push ebx
lea eax, [esi + 0x4c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
call fcn.00401a8e
push 0x238
mov byte [esp + 0xf4], 2
call fcn.0048a378
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0xf0], 3
cmp eax, ebx
je 0x4772c5
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi + 0x220]
lea ecx, [esp + 0x94]
mov ebx, eax
call fcn.0046c120
mov edi, eax
mov dword [esp + 0x10], edi
xor ebx, ebx
jmp 0x4772cb
mov dword [esp + 0x10], ebx
mov edi, ebx
push 0xffffffffffffffff
mov byte [esp + 0xf4], 2
push ebx
lea eax, [esi + 0x88]
lea ecx, [edi + 0x28]
mov byte [edi + 0x17c], 1
call fcn.00401a8e
mov esi, dword [edi + 0x88]
lea ecx, [esp + 0x1c]
call fcn.0044a780
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x3c]
push edx
lea ecx, [edi + 0x88]
call eax
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x47731a
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc8]
push 0x60ae1c
push ecx
call fcn.004466c0
add esp, 0xc
mov edi, eax
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 8]
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
push 0x60b3c0
mov byte [esp + 0xf4], 5
call fcn.0048aa3a
add esp, 4
mov ecx, 0x60b3c0
lea esi, [esp + 0x54]
call fcn.00401741
push 0
call fcn.0048a761
add esp, 4
push edx
push eax
lea esi, [esp + 0xb0]
call fcn.00449ae0
add esp, 8
mov edx, 8
mov byte [esp + 0xf0], 6
cmp dword [edi + 0x14], edx
jb 0x4773a2
mov edi, dword [edi]
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x68], edx
jae 0x4773b0
lea ecx, [esp + 0x54]
cmp dword [eax + 0x14], edx
jb 0x4773b7
mov eax, dword [eax]
push edi
push ecx
push eax
lea ecx, [esp + 0x7c]
push str.__s____s___s
push ecx
call fcn.004466c0
add esp, 0x14
mov byte [esp + 0xf0], 7
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
push eax
push edx
push esi
call fcn.0041121b
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x47776a
inc ecx
mov dword [ebx + 8], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov edi, 8
mov dword [ecx], eax
cmp dword [esp + 0x84], edi
jb 0x47741c
mov eax, dword [esp + 0x70]
push eax
call fcn.0048a131
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
cmp dword [esp + 0xbc], edi
jb 0x477450
mov edx, dword [esp + 0xa8]
push edx
call fcn.0048a131
add esp, 4
cmp dword [esp + 0x68], edi
jb 0x477463
mov eax, dword [esp + 0x54]
push eax
call fcn.0048a131
add esp, 4
mov byte [esp + 0xf0], 2
cmp dword [esp + 0xd8], edi
jb 0x477484
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0048a131
add esp, 4
test byte [0x63221c], 1
mov edx, dword [esp + 0x10]
mov dword [edx + 0x230], 0x471170
jne 0x477545
or dword [0x63221c], 1
push 0x632228
mov dword [0x632220], 0x5fd2f0
mov dword [0x632224], ebx
mov dword [0x632240], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xf0], 9
push edi
mov dword [0x632220], 0x5fd330
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x4774f4
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x4774f6
xor esi, esi
push 0x632228
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x632224]
inc dword [0x632240]
cmp eax, ebx
je 0x477519
push eax
call fcn.0048a131
add esp, 4
dec dword [0x632240]
push 0x632228
mov dword [0x632224], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xf0], 2
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x477553
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x477561
lea eax, [esp + 0x1c]
push ecx
push eax
mov eax, dword [0x632220]
mov ecx, dword [eax + 8]
push 0x60ae30
push str.DownloadTask.cpp
push 0x31a
push ebx
push 0x632220
call ecx
add esp, 0x1c
test byte [0x6321f0], 1
jne 0x47763f
or dword [0x6321f0], 1
push 0x6321fc
mov dword [0x6321f4], 0x5fd2f0
mov dword [0x6321f8], ebx
mov dword [0x632214], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xf0], 0xb
push edi
mov dword [0x6321f4], 0x5fd310
mov byte [0x632218], 1
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x4775ee
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x4775f0
xor esi, esi
push 0x6321fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6321f8]
inc dword [0x632214]
cmp eax, ebx
je 0x477613
push eax
call fcn.0048a131
add esp, 4
dec dword [0x632214]
push 0x6321fc
mov dword [0x6321f8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xf0], 2
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x47764d
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x47765b
lea eax, [esp + 0x1c]
mov edx, dword [0x6321f4]
push ecx
push eax
mov eax, dword [edx + 4]
push 0x60ae30
push ebx
push 0x6321f4
call eax
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x78]
mov esi, dword [eax]
add esp, 0x14
cmp esi, eax
je 0x4776c0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
cmp dword [esi + 0x1c], 8
jb 0x4776a4
mov eax, dword [esi + 8]
push eax
call fcn.0048a131
add esp, 4
xor ecx, ecx
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], ebx
push esi
mov word [esi + 8], cx
call fcn.0048a131
add esp, 4
dec dword [edi + 0x7c]
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
cmp eax, ecx
je 0x4776dc
cmp dword [eax + 8], edx
je 0x477708
mov eax, dword [eax]
cmp eax, ecx
jne 0x4776d1
mov esi, ecx
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
push esi
call fcn.0047eeb0
mov ecx, dword [edi + 0x44]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x47776a
inc ecx
mov dword [edi + 0x44], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
push edi
call fcn.00472db0
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x477726
mov eax, dword [esp + 0x1c]
push eax
call fcn.0048a131
add esp, 4
xor ecx, ecx
mov byte [esp + 0xf0], cl
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
cmp dword [esp + 0x4c], esi
jb 0x477753
mov edx, dword [esp + 0x38]
push edx
call fcn.0048a131
add esp, 4
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 8]
jl 0x477224
jmp 0x4771e4
push str.list_T__too_long
call fcn.004890a5
int3