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

Disassembly:
push 0xffffffffffffffff
push 0x5d5170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 1
push edi
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], esi
call fcn.005789d4
xor ebx, ebx
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x64], ebx
je 0x4d7f88
mov ecx, esi
call fcn.004d7740
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x5c], 2
mov ebp, dword [esi + 0x30]
cmp ebp, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
je 0x4d80e2
nop
cmp ebp, ebx
mov eax, ebp
je 0x4d80dd
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x3c]
mov ebp, dword [ebp]
push str.My_ED2K_Partial
push eax
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4d800e
mov dword [esp + 0x34], edi
jmp 0x4d80c9
mov eax, dword [esi + 0x3c]
push str.My_ED2K_Core
push eax
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4d8030
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
jmp 0x4d80c9
mov eax, dword [esi + 0x3c]
push str.Seeding_Queue
push eax
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4d804f
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
jmp 0x4d80c9
mov eax, dword [esi + 0x3c]
push str.Vod_Queue
push eax
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4d806e
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
jmp 0x4d80c9
mov eax, dword [esi + 0x3c]
push 0x5e3704
push eax
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4d808d
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
jmp 0x4d80c9
mov eax, dword [esi + 0x3c]
push str.ED2K_Partial
push eax
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4d80ac
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
jmp 0x4d80c9
mov eax, dword [esi + 0x3c]
push str.ED2K_Completed
push eax
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4d80c9
mov dword [esp + 0x18], esi
mov dword [esp + 0x64], edi
cmp ebp, ebx
jne 0x4d7fe0
cmp dword [esp + 0x34], ebx
je 0x4d80e2
mov eax, dword [esp + 0x1c]
jmp 0x4d80f1
call fcn.005a8539
mov ecx, dword [esp + 0x10]
push ebx
push str.My_ED2K_Partial
call fcn.004d7b00
mov ecx, 0x100
mov ebp, 0xf
mov esi, 0x1e
mov ebx, 0x258
mov dword [eax + 0x70], esi
mov dword [eax + 0x58], edi
mov dword [eax + 0x44], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ebp
mov dword [eax + 0x6c], ebp
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4d812b
mov eax, dword [esp + 0x3c]
jmp 0x4d813b
mov ecx, dword [esp + 0x10]
push 0
push str.Seeding_Queue
call fcn.004d7b00
mov edx, dword [0x6613bc]
cmp dword [edx + 0x314], 0
mov ecx, 0xa
mov dword [eax + 0x78], ebx
mov dword [eax + 0x74], edi
mov dword [eax + 0x44], 0x200
mov dword [eax + 0x58], 0
mov dword [eax + 0x70], esi
je 0x4d8171
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], ecx
jmp 0x4d8186
mov dword [eax + 0x64], 0x2710
mov dword [eax + 0x68], 0x7d0
mov dword [eax + 0x6c], 0xfa0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4d8194
mov eax, dword [esp + 0x44]
jmp 0x4d81a4
mov ecx, dword [esp + 0x10]
push 0
push str.My_ED2K_Core
call fcn.004d7b00
mov dword [eax + 0x70], esi
mov dword [eax + 0x44], 0x100
mov dword [eax + 0x64], 0x64
mov dword [eax + 0x68], ebp
mov dword [eax + 0x6c], ebp
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov eax, dword [0x6613bc]
mov ecx, dword [eax + 0x314]
test ecx, ecx
jne 0x4d8678
cmp dword [eax + 0x17c], 0x200
mov eax, dword [esp + 0x24]
jbe 0x4d8256
test eax, eax
je 0x4d81ee
mov eax, dword [esp + 0x28]
jmp 0x4d81fe
mov ecx, dword [esp + 0x10]
push 0
push 0x5e3704
call fcn.004d7b00
mov ebp, 0x10
mov ebx, 5
mov dword [eax + 0x70], esi
mov dword [eax + 0x44], ebp
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], 0x28
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], 0x258
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4d823d
mov eax, dword [esp + 0x30]
mov dword [eax + 0x6c], 4
jmp 0x4d82bc
mov ecx, dword [esp + 0x10]
push 0
push str.Vod_Queue
call fcn.004d7b00
mov dword [eax + 0x6c], 4
jmp 0x4d82bc
test eax, eax
je 0x4d8260
mov eax, dword [esp + 0x28]
jmp 0x4d8270
mov ecx, dword [esp + 0x10]
push 0
push 0x5e3704
call fcn.004d7b00
mov ebp, 0x10
mov ebx, 5
mov dword [eax + 0x70], 0x14
mov dword [eax + 0x44], ebp
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], esi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], 0x708
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4d82a5
mov eax, dword [esp + 0x30]
jmp 0x4d82b5
mov ecx, dword [esp + 0x10]
push 0
push str.Vod_Queue
call fcn.004d7b00
mov dword [eax + 0x6c], 3
mov dword [eax + 0x70], esi
mov dword [eax + 0x58], 0
mov dword [eax + 0x44], 0x400
mov dword [eax + 0x64], 0xa
mov dword [eax + 0x68], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], 0x258
mov eax, dword [0x6613bc]
mov eax, dword [eax + 0x17c]
cmp eax, 0x4b0
jbe 0x4d83a8
lea ecx, [esp + 0x14]
push 0x6700
push ecx
call fcn.004e6850
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4d8317
mov eax, dword [esp + 0x1c]
jmp 0x4d8327
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Partial
call fcn.004d7b00
lea edx, [esp + 0x14]
push 0x66ff
mov esi, 8
mov ebp, 2
mov ebx, 0x258
push edx
mov dword [eax + 0x70], 0x28
mov dword [eax + 0x44], esi
mov dword [eax + 0x58], edi
mov dword [eax + 0x64], 0x200
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], ebp
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov dword [eax + 0x80], edi
call fcn.004e6850
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x4d8389
mov eax, dword [esp + 0x18]
mov dword [eax + 0x64], 0x40
mov dword [eax + 0x6c], ebp
jmp 0x4d874d
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Completed
call fcn.004d7b00
mov dword [eax + 0x64], 0x40
mov dword [eax + 0x6c], ebp
jmp 0x4d874d
cmp eax, 0x320
jbe 0x4d8459
lea eax, [esp + 0x14]
push 0x6700
push eax
call fcn.004e6850
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4d83d3
mov eax, dword [esp + 0x1c]
jmp 0x4d83e3
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Partial
call fcn.004d7b00
lea ecx, [esp + 0x14]
push 0x66ff
mov esi, 8
mov ebx, 0x258
push ecx
mov dword [eax + 0x70], 0x28
mov dword [eax + 0x44], esi
mov dword [eax + 0x58], edi
mov dword [eax + 0x64], 0x40
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov dword [eax + 0x80], edi
call fcn.004e6850
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x4d843d
mov eax, dword [esp + 0x18]
mov dword [eax + 0x64], 0x20
jmp 0x4d874a
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Completed
call fcn.004d7b00
mov dword [eax + 0x64], 0x20
jmp 0x4d874a
cmp eax, 0xc8
jbe 0x4d850e
lea edx, [esp + 0x14]
push 0x6700
push edx
call fcn.004e6850
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4d8484
mov eax, dword [esp + 0x1c]
jmp 0x4d8494
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Partial
call fcn.004d7b00
mov dword [eax + 0x70], esi
mov esi, 8
mov ebx, 0x258
mov dword [eax + 0x44], esi
mov dword [eax + 0x58], edi
mov dword [eax + 0x64], ebp
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov dword [eax + 0x80], edi
lea eax, [esp + 0x14]
push 0x66ff
push eax
call fcn.004e6850
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x4d84ec
mov eax, dword [esp + 0x18]
mov dword [eax + 0x70], 0xa
mov dword [eax + 0x64], ebp
mov dword [eax + 0x6c], edi
jmp 0x4d8754
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Completed
call fcn.004d7b00
mov dword [eax + 0x70], 0xa
mov dword [eax + 0x64], ebp
mov dword [eax + 0x6c], edi
jmp 0x4d8754
cmp eax, 0x78
jbe 0x4d85bd
lea ecx, [esp + 0x14]
push 0x6700
push ecx
call fcn.004e6850
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4d8537
mov eax, dword [esp + 0x1c]
jmp 0x4d8547
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Partial
call fcn.004d7b00
mov dword [eax + 0x70], esi
lea edx, [esp + 0x14]
push 0x66ff
mov esi, 8
mov ebp, 0x258
push edx
mov dword [eax + 0x44], esi
mov dword [eax + 0x58], edi
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebp
mov dword [eax + 0x80], edi
call fcn.004e6850
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x4d858f
mov eax, dword [esp + 0x18]
jmp 0x4d859f
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Completed
call fcn.004d7b00
mov dword [eax + 0x70], 0xa
mov dword [eax + 0x44], esi
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebp
jmp 0x4d8760
cmp eax, 0x32
push 0x66ff
jbe 0x4d861c
lea eax, [esp + 0x18]
push eax
call fcn.004e6850
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x4d85e2
mov eax, dword [esp + 0x18]
jmp 0x4d85f2
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Completed
call fcn.004d7b00
mov dword [eax + 0x70], 0x14
mov dword [eax + 0x44], 8
mov dword [eax + 0x64], 0x1f4
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], 0x708
jmp 0x4d8760
lea ecx, [esp + 0x18]
push ecx
call fcn.004e6850
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x4d8637
mov eax, dword [esp + 0x18]
jmp 0x4d8647
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Completed
call fcn.004d7b00
mov dword [eax + 0x70], 0x14
mov dword [eax + 0x44], 8
mov dword [eax + 0x58], edi
mov dword [eax + 0x64], 0x1f4
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], 2
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], 0x708
jmp 0x4d8760
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4d8686
mov eax, dword [esp + 0x28]
jmp 0x4d8696
mov ecx, dword [esp + 0x10]
push 0
push 0x5e3704
call fcn.004d7b00
lea edx, [esp + 0x14]
push 0x6700
push edx
mov dword [eax + 0x70], esi
mov dword [eax + 0x44], 0x10
mov dword [eax + 0x64], 0x2710
mov dword [eax + 0x68], 0x7d0
mov dword [eax + 0x6c], 0xfa0
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
call fcn.004e6850
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4d86db
mov eax, dword [esp + 0x1c]
jmp 0x4d86eb
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Partial
call fcn.004d7b00
mov esi, 8
mov ebp, 2
mov dword [eax + 0x70], 0x28
mov dword [eax + 0x44], esi
mov dword [eax + 0x58], edi
mov dword [eax + 0x64], ebp
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov dword [eax + 0x80], edi
lea eax, [esp + 0x14]
push 0x66ff
push eax
call fcn.004e6850
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x4d8737
mov eax, dword [esp + 0x18]
jmp 0x4d8747
mov ecx, dword [esp + 0x10]
push 0
push str.ED2K_Completed
call fcn.004d7b00
mov dword [eax + 0x64], ebp
mov dword [eax + 0x6c], edi
mov dword [eax + 0x70], 0x14
mov dword [eax + 0x44], esi
mov dword [eax + 0x68], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x80], edi
call fcn.004d7e00
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.0057897a
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4