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

Disassembly:
push 0xffffffffffffffff
push 0x5d01f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x5e3a20
lea ecx, [esp + 0x20]
call fcn.00406630
xor ebx, ebx
mov dword [esp + 0x44], ebx
push 0x5e3a20
lea ecx, [esp + 0x1c]
call fcn.00406630
mov byte [esp + 0x44], 1
push 0x5e3a20
lea ecx, [esp + 0x18]
call fcn.00406630
mov byte [esp + 0x44], 2
mov edi, dword [esp + 0x4c]
mov dword [esi + 0xb8], 1
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
add eax, 0x10
cmp eax, ecx
jbe 0x4a20f8
call fcn.005b3b11
mov ecx, dword [edi + 0x24]
add ecx, dword [edi + 0x14]
mov eax, dword [ecx]
lea edx, [esi + 0xbc]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [edi + 0x24]
mov edx, dword [esp + 0x50]
add ecx, 0x10
push edx
mov dword [edi + 0x24], ecx
push edi
mov ecx, esi
call fcn.004a0c80
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
add eax, 4
cmp eax, ecx
jbe 0x4a2142
call fcn.005b3b11
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x14]
mov ecx, dword [eax + ecx]
add eax, 4
cmp ecx, ebx
mov dword [edi + 0x24], eax
mov ebp, ecx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
jbe 0x4a2463
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x24]
dec ebp
sub edx, ecx
cmp edx, 1
mov dword [esp + 0x20], ebp
jl 0x4a2521
lea ecx, [esp + 0x28]
call fcn.00472ba0
mov byte [esp + 0x44], 3
mov eax, dword [esp + 0x54]
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.00472e60
test eax, eax
je 0x4a24ff
mov al, byte [esp + 0x30]
cmp al, 1
jne 0x4a2225
mov ecx, dword [esp + 0x34]
mov edi, dword [esi + 0x140]
lea ebp, [esi + 0x140]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x4a220d
mov edx, dword [edi + 0xc]
test edx, edx
lea ebx, [edi + 0xc]
jl 0x4a2201
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4a2201
push eax
call fcn.004026e0
mov dword [esp + 0x54], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4a21f5
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0x10
mov dword [ebp], eax
jmp 0x4a220d
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebp
call fcn.004053c0
push ebp
call fcn.004a0fa0
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x24]
add esp, 4
xor ebx, ebx
jmp 0x4a244d
cmp al, 2
jne 0x4a2258
mov edx, dword [esi + 0x150]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x154]
add edx, ecx
adc eax, ebx
mov dword [esi + 0x148], 1
mov dword [esi + 0x150], edx
mov dword [esi + 0x154], eax
jmp 0x4a244d
cmp al, 0x3a
jne 0x4a2297
mov eax, dword [esp + 0x38]
push 1
push ebx
xor ecx, ecx
push ecx
push eax
mov dword [esi + 0x148], 1
call fcn.0057a620
mov ecx, dword [esi + 0x150]
add ecx, eax
mov eax, dword [esi + 0x154]
adc eax, edx
mov dword [esi + 0x150], ecx
mov dword [esi + 0x154], eax
jmp 0x4a244d
cmp al, 5
je 0x4a244d
cmp al, 0x15
jne 0x4a22b2
mov edx, dword [esp + 0x38]
mov dword [esi + 0x158], edx
jmp 0x4a244d
cmp al, 0xb
jne 0x4a22db
mov ecx, dword [esp + 0x34]
push 0x10
lea eax, [esi + 0xd0]
push eax
push ecx
call fcn.0046a520
add esp, 0xc
mov dword [esi + 0xcc], 1
jmp 0x4a244d
cmp al, 0x30
jne 0x4a2306
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x4a22fb
mov edx, dword [esi + 0x150]
shr edx, 2
mov dword [esi + 0x160], edx
jmp 0x4a244d
mov dword [esi + 0x15c], eax
jmp 0x4a244d
cmp al, 0xd3
je 0x4a244d
cmp al, 0xd4
jne 0x4a2344
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push 0x5e6798
push ecx
call fcn.0040a170
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, 0xaf
jne 0x4a244d
mov dword [esi + 0x78], 1
jmp 0x4a244d
cmp al, 0xd5
je 0x4a243f
test al, al
jne 0x4a244d
cmp byte [esp + 0x28], 2
jne 0x4a23e4
lea eax, [esp + 0x2c]
push str.length
push eax
call fcn.0041c210
add esp, 8
test al, al
je 0x4a23dc
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ecx - 0xc]
cmp eax, 3
jge 0x4a23a5
lea edx, [esp + 0x50]
push edx
push 0x5e3cec
push ecx
call fcn.0057a511
add esp, 0xc
jmp 0x4a244d
cmp eax, 6
lea eax, [esp + 0x50]
lea edx, [esp + 0x20]
push eax
push edx
jge 0x4a23c7
push str._i:_i
push ecx
call fcn.0057a511
add esp, 0x10
jmp 0x4a244d
lea eax, [esp + 0x2c]
push eax
push str._i:_i:_i
push ecx
call fcn.0057a511
add esp, 0x14
jmp 0x4a244d
mov al, byte [esp + 0x30]
test al, al
jne 0x4a244d
cmp byte [esp + 0x28], 3
jne 0x4a2422
lea ecx, [esp + 0x2c]
push str.bitrate
push ecx
call fcn.0041c210
add esp, 8
test al, al
je 0x4a241a
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push 0x5e6798
push eax
call fcn.0040a170
add esp, 0xc
jmp 0x4a244d
mov al, byte [esp + 0x30]
test al, al
jne 0x4a244d
cmp byte [esp + 0x28], 2
jne 0x4a244d
lea ecx, [esp + 0x2c]
push str.codec
push ecx
call fcn.0041c210
add esp, 8
test al, al
je 0x4a244d
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
push edx
call fcn.00405540
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x28]
call fcn.0046c070
cmp ebp, ebx
ja 0x4a2167
lea ecx, [esp + 0x10]
call fcn.00401b20
mov byte [esp + 0x44], 4
mov eax, dword [esi + 0x140]
mov ecx, dword [eax - 0xc]
add esi, 0x140
cmp ecx, ebx
je 0x4a258e
push 0x2e
push eax
call fcn.0057b09e
add esp, 8
cmp eax, ebx
je 0x4a258e
sub eax, dword [esi]
sar eax, 1
cmp eax, ebx
jle 0x4a258e
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.0040db40
mov byte [esp + 0x44], 5
push eax
lea ecx, [esp + 0x14]
call fcn.00405540
mov byte [esp + 0x44], 4
lea ecx, [esp + 0x4c]
call fcn.00401b70
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x4a24ec
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00402470
mov eax, dword [esp + 0x10]
push eax
call dword [0x652c8c]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x4a2565
xor eax, eax
jmp 0x4a257a
push str.ED2K_search_result_packet_read_error
push 3
push 0x661308
call fcn.0046abf0
add esp, 0xc
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x28]
call fcn.0046c070
mov byte [esp + 0x44], 1
lea ecx, [esp + 0x14]
call fcn.00401b70
mov byte [esp + 0x44], 0
lea ecx, [esp + 0x18]
call fcn.00401b70
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00401b70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc
push ecx
call fcn.0057a0fd
add esp, 4
cmp eax, ebx
jl 0x4a28f6
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x4a28f6
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], bx
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x4a28a1
push str..mp3
push eax
call fcn.0057a418
add esp, 8
test eax, eax
je 0x4a28a1
mov edx, dword [esp + 0x10]
push str..ogg
push edx
call fcn.0057a418
add esp, 8
test eax, eax
je 0x4a28a1
mov eax, dword [esp + 0x10]
push str..wav
push eax
call fcn.0057a418
add esp, 8
test eax, eax
je 0x4a28a1
lea ecx, [esp + 0x10]
push str..mid
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push str..ape
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..mac
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..apl
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push 0x5f23c4
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..avi
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..mpg
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push str..mpeg
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..ogm
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..mkv
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push str..asf
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..wma
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..wmv
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push 0x5e855c
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..exe
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..dll
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push str..iso
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..bin
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..cue
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push str..jpg
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..jpeg
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..gif
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push str..png
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..bmp
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..pdf
push ecx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea edx, [esp + 0x10]
push str..doc
push edx
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea eax, [esp + 0x10]
push str..txt
push eax
call fcn.0041c210
add esp, 8
test al, al
jne 0x4a28a1
lea ecx, [esp + 0x10]
push str..xls
push ecx
call fcn.0041c210
add esp, 8
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x10]
call fcn.00401b70
mov byte [esp + 0x44], 1
lea ecx, [esp + 0x14]
call fcn.00401b70
mov byte [esp + 0x44], 0
lea ecx, [esp + 0x18]
call fcn.00401b70
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00401b70
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc
push 0x80070057
call fcn.00401180
int3