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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a2a92
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
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.00471ff0
xor ebx, ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x18], ebx
cmp dword [ebp + 8], ebx
jg 0x4781b8
cmp dword [esp + 0xa0], 8
jb 0x47818e
mov eax, dword [esp + 0x8c]
push eax
call fcn.0048bcc1
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.0048b951
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
mov esi, edi
cmp dword [esi + 0x7c], ebx
je 0x478174
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.00401b81
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.00401b81
push 0x238
mov byte [esp + 0xf4], 2
call fcn.0048bf08
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0xf0], 3
cmp eax, ebx
je 0x478255
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi + 0x220]
lea ecx, [esp + 0x94]
mov ebx, eax
call fcn.0046d120
mov edi, eax
mov dword [esp + 0x10], edi
xor ebx, ebx
jmp 0x47825b
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.00401b81
mov esi, dword [edi + 0x88]
lea ecx, [esp + 0x1c]
call fcn.00449bc0
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 0x4782aa
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc8]
push 0x60d104
push ecx
call fcn.00445760
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 0x60d6a8
mov byte [esp + 0xf4], 5
call fcn.0048c5ca
add esp, 4
mov ecx, 0x60d6a8
lea esi, [esp + 0x54]
call fcn.00401834
push 0
call fcn.0048c2f1
add esp, 4
push edx
push eax
lea esi, [esp + 0xb0]
call fcn.00448ef0
add esp, 8
mov edx, 8
mov byte [esp + 0xf0], 6
cmp dword [edi + 0x14], edx
jb 0x478332
mov edi, dword [edi]
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x68], edx
jae 0x478340
lea ecx, [esp + 0x54]
cmp dword [eax + 0x14], edx
jb 0x478347
mov eax, dword [eax]
push edi
push ecx
push eax
lea ecx, [esp + 0x7c]
push str.__s____s___s
push ecx
call fcn.00445760
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.00410373
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x4786fb
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 0x4783ac
mov eax, dword [esp + 0x70]
push eax
call fcn.0048bcc1
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 0x4783e0
mov edx, dword [esp + 0xa8]
push edx
call fcn.0048bcc1
add esp, 4
cmp dword [esp + 0x68], edi
jb 0x4783f3
mov eax, dword [esp + 0x54]
push eax
call fcn.0048bcc1
add esp, 4
mov byte [esp + 0xf0], 2
cmp dword [esp + 0xd8], edi
jb 0x478414
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0048bcc1
add esp, 4
test byte [0x6353fc], 1
mov edx, dword [esp + 0x10]
mov dword [edx + 0x230], 0x4720c0
jne 0x4784d5
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 + 0xf0], 9
push edi
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, ebx
je 0x478484
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x478486
xor esi, esi
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
inc dword [0x635420]
cmp eax, ebx
je 0x4784a9
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 + 0xf0], 2
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x4784e3
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x4784f1
lea eax, [esp + 0x1c]
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 0x4785cf
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 + 0xf0], 0xb
push edi
mov dword [0x6353d4], 0x5ff408
mov byte [0x6353f8], 1
call fcn.0048bf08
add esp, 4
cmp eax, ebx
je 0x47857e
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x478580
xor esi, esi
push 0x6353dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6353d8]
inc dword [0x6353f4]
cmp eax, ebx
je 0x4785a3
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 + 0xf0], 2
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x4785dd
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x4785eb
lea eax, [esp + 0x1c]
mov edx, dword [0x6353d4]
push ecx
push eax
mov eax, dword [edx + 4]
push 0x60d118
push ebx
push 0x6353d4
call eax
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x78]
mov esi, dword [eax]
add esp, 0x14
cmp esi, eax
je 0x478650
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 0x478634
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 + 0x10]
mov dword [esp + 0x10], edx
cmp eax, ecx
je 0x47866c
cmp dword [eax + 8], edx
je 0x478698
mov eax, dword [eax]
cmp eax, ecx
jne 0x478661
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 0x4786fb
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 + 0x30], esi
jb 0x4786b7
mov eax, dword [esp + 0x1c]
push eax
call fcn.0048bcc1
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 0x4786e4
mov edx, dword [esp + 0x38]
push edx
call fcn.0048bcc1
add esp, 4
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 8]
jl 0x4781b4
jmp 0x478174
push str.list_T__too_long
call fcn.0048ac2a
int3