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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a2b58
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push esi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov byte [edi + 0x109], 1
cmp dword [ebp + 8], esi
jne 0x47684e
cmp dword [ebx + 0x10], esi
je 0x47684e
push 0x24
mov dword [esp + 0x20], esi
call fcn.0048bf08
add esp, 4
cmp eax, esi
je 0x476950
mov dword [eax], eax
mov dword [esp + 0x18], eax
mov dword [eax + 4], eax
mov dword [esp + 0x108], esi
cmp dword [ebx + 0x10], esi
jbe 0x47680f
push 1
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.00445ff0
add esp, 4
lea eax, [edi + 0x10c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0047bf80
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
cmp eax, ecx
jne 0x4768ab
lea ebx, [esp + 0x18]
mov dword [esp + 0x108], 0xffffffff
call fcn.00403097
mov edx, dword [esp + 0x18]
push edx
call fcn.0048bcc1
add esp, 4
cmp byte [edi + 0x108], 0
jne 0x476eff
cmp byte [edi + 0x10a], 0
je 0x476eff
mov esi, dword [edi + 0x84]
lea ebx, [esp + 0xa4]
mov ecx, edi
mov byte [edi + 0x108], 1
mov dword [esp + 0x24], esi
call fcn.00471ff0
xor ebx, ebx
mov dword [esp + 0x108], 2
mov dword [esp + 0x14], ebx
cmp esi, ebx
jle 0x476ee5
jmp 0x476982
mov eax, dword [esp + 0xc]
xor esi, esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x54], cx
add eax, 8
push esi
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], esi
call fcn.00401b81
lea edx, [esp + 0x50]
push edx
lea ecx, [edi + 0x78]
mov byte [esp + 0x10c], 1
call fcn.0047bf80
mov eax, dword [edi + 0x78]
mov esi, dword [eax]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x50]
push eax
push ecx
push esi
call fcn.004102ad
mov ecx, dword [edi + 0x7c]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x476946
inc ecx
mov dword [edi + 0x7c], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [esp + 0x108], 0
cmp dword [esp + 0x64], 8
jb 0x47692d
mov eax, dword [esp + 0x50]
push eax
call fcn.0048bcc1
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x18]
jne 0x4768a5
jmp 0x47682d
push str.list_T__too_long
call fcn.0048ac2a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], esi
call fcn.0048bd54
push 0x613a90
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.00494d66
lea esp, [esp]
xor ebx, ebx
cmp dword [edi + 0x7c], ebx
je 0x476ee5
mov eax, dword [edi + 0x78]
mov eax, dword [eax]
push 0xffffffffffffffff
xor edx, edx
mov esi, 7
add eax, 8
push ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
call fcn.00401b81
mov byte [esp + 0x108], 3
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x38], ax
push ebx
lea eax, [edi + 0x4c]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
call fcn.00401b81
push 0x238
mov byte [esp + 0x10c], 4
call fcn.0048bf08
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x108], 5
cmp eax, ebx
je 0x476a29
push 1
lea ecx, [esp + 0x38]
push ecx
lea edx, [edi + 0x220]
lea ecx, [esp + 0xac]
mov ebx, eax
call fcn.0046d120
mov esi, eax
mov dword [esp + 0xc], esi
xor ebx, ebx
jmp 0x476a2f
mov dword [esp + 0xc], ebx
mov esi, ebx
push 0xffffffffffffffff
mov byte [esp + 0x10c], 4
push ebx
lea eax, [edi + 0x88]
lea ecx, [esi + 0x28]
mov byte [esi + 0x17c], 1
call fcn.00401b81
lea ebx, [esi + 0x88]
mov esi, dword [ebx]
lea ecx, [esp + 0x34]
call fcn.00449bc0
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x70]
push edx
mov ecx, ebx
call eax
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x476a7f
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xe0]
push 0x60d104
push ecx
call fcn.00445760
mov dword [esp + 0x1c], eax
mov ebx, dword [edi + 8]
xor edx, edx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], dx
push 0x60d6a8
mov byte [esp + 0x118], 7
call fcn.0048c5ca
add esp, 0x10
mov ecx, 0x60d6a8
lea esi, [esp + 0x50]
call fcn.00401834
push 0
call fcn.0048c2f1
push edx
push eax
lea esi, [esp + 0xcc]
call fcn.00448ef0
add esp, 0xc
mov byte [esp + 0x108], 8
mov ecx, dword [esp + 0x10]
mov esi, 8
cmp dword [ecx + 0x14], esi
jb 0x476b03
mov ecx, dword [ecx]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x476b11
lea edx, [esp + 0x50]
cmp dword [eax + 0x14], esi
jb 0x476b18
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0x94]
push str.__s____s___s
push eax
call fcn.00445760
add esp, 0x14
mov byte [esp + 0x108], 9
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
push esi
call fcn.00410373
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x476946
inc ecx
mov dword [ebx + 8], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov esi, 8
mov dword [ecx], eax
cmp dword [esp + 0x9c], esi
jb 0x476b83
mov eax, dword [esp + 0x88]
push eax
call fcn.0048bcc1
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], cx
cmp dword [esp + 0xd4], esi
jb 0x476bba
mov edx, dword [esp + 0xc0]
push edx
call fcn.0048bcc1
add esp, 4
cmp dword [esp + 0x64], esi
jb 0x476bcd
mov eax, dword [esp + 0x50]
push eax
call fcn.0048bcc1
add esp, 4
mov byte [esp + 0x108], 4
cmp dword [esp + 0xf0], esi
jb 0x476bee
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.0048bcc1
add esp, 4
test byte [0x6353fc], 1
mov edx, dword [esp + 0xc]
mov dword [edx + 0x230], 0x4720c0
jne 0x476cb4
or dword [0x6353fc], 1
push 0x635408
mov dword [0x635400], 0x5ff3e8
mov dword [0x635404], ebx
mov dword [0x635420], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x108], 0xb
push esi
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, ebx
je 0x476c5e
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x476c60
xor esi, esi
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
inc dword [0x635420]
cmp eax, ebx
je 0x476c83
push eax
call fcn.0048bcc1
add esp, 4
dec dword [0x635420]
push 0x635408
mov dword [0x635404], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0x108], 4
mov esi, 8
mov ecx, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x476cc5
lea ecx, [esp + 0x6c]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x476cd3
lea eax, [esp + 0x34]
push ecx
push eax
mov eax, dword [0x635400]
mov ecx, dword [eax + 8]
push 0x60d118
push str.DownloadTask.cpp
push 0x31a
push ebx
push 0x635400
call ecx
add esp, 0x1c
test byte [0x6353d0], 1
jne 0x476db6
or dword [0x6353d0], 1
push 0x6353dc
mov dword [0x6353d4], 0x5ff3e8
mov dword [0x6353d8], ebx
mov dword [0x6353f4], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x108], 0xd
push esi
mov dword [0x6353d4], 0x5ff408
mov byte [0x6353f8], 1
call fcn.0048bf08
add esp, 4
cmp eax, ebx
je 0x476d60
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x476d62
xor esi, esi
push 0x6353dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6353d8]
inc dword [0x6353f4]
cmp eax, ebx
je 0x476d85
push eax
call fcn.0048bcc1
add esp, 4
dec dword [0x6353f4]
push 0x6353dc
mov dword [0x6353d8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0x108], 4
mov esi, 8
mov ecx, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x476dc7
lea ecx, [esp + 0x6c]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x476dd5
lea eax, [esp + 0x34]
mov edx, dword [0x6353d4]
push ecx
push eax
mov eax, dword [edx + 4]
push 0x60d118
push ebx
push 0x6353d4
call eax
mov eax, dword [edi + 0x78]
mov esi, dword [eax]
add esp, 0x14
cmp esi, eax
je 0x476e36
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 0x476e1a
mov eax, dword [esi + 8]
push eax
call fcn.0048bcc1
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.0048bcc1
add esp, 4
dec dword [edi + 0x7c]
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
cmp eax, ecx
je 0x476e52
cmp dword [eax + 8], edx
je 0x476e82
mov eax, dword [eax]
cmp eax, ecx
jne 0x476e47
mov esi, ecx
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
push esi
call fcn.0047c2a0
mov ecx, dword [edi + 0x44]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x476946
inc ecx
mov dword [edi + 0x44], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov ecx, edi
call fcn.00473d40
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x476ea1
mov eax, dword [esp + 0x34]
push eax
call fcn.0048bcc1
add esp, 4
xor ecx, ecx
mov byte [esp + 0x108], 2
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
cmp dword [esp + 0x80], esi
jb 0x476ed2
mov edx, dword [esp + 0x6c]
push edx
call fcn.0048bcc1
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
jl 0x476980
cmp dword [esp + 0xb8], 8
jb 0x476eff
mov eax, dword [esp + 0xa4]
push eax
call fcn.0048bcc1
add esp, 4
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret 4