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

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x50]
push ebp
push esi
xor esi, esi
push edi
lea eax, [esp + 0x14]
push 1
xor ebp, ebp
xor edi, edi
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call fcn.00495240
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
add esp, 8
cmp eax, esi
je 0x51347a
mov dword [eax], esi
cmp dword [esp + 0x60], esi
je 0x51376c
mov ecx, dword [esp + 0x64]
cmp ecx, esi
je 0x51376c
cmp eax, esi
je 0x5134ee
mov eax, ecx
call fcn.005129c0
cmp eax, esi
jne 0x5134ac
pop edi
pop esi
pop ebp
mov eax, 0x2c0
pop ebx
add esp, 0x48
ret
cmp eax, 3
jne 0x5134d1
push 1
push ebx
call fcn.00495240
push eax
call fcn.00494870
add esp, 0xc
neg eax
sbb eax, eax
neg eax
add eax, 1
mov dword [esp + 0x10], eax
jmp 0x5134d5
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
call fcn.004ff100
mov ecx, dword [esp + 0x70]
add esp, 0xc
jmp 0x5134f2
mov dword [esp + 0x10], esi
push str.upnp:class
push ecx
call fcn.004b02f0
mov ebx, eax
call fcn.0050e190
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
push 0x5d98b0
push eax
call fcn.004b0140
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x51368e
push ebx
call fcn.004af9a0
add esp, 4
test eax, eax
je 0x51366a
cmp byte [eax], 0
je 0x51366a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x513567
push eax
call fcn.0050bcd0
add esp, 4
neg eax
sbb eax, eax
add eax, 2
xor ecx, ecx
cmp esi, eax
sete cl
mov eax, ecx
test eax, eax
je 0x51366a
push str.protocolInfo
push ebx
call fcn.004b02c0
mov edi, eax
add esp, 8
test edi, edi
je 0x51366a
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x51359d
push str.:image_
push edi
call fcn.004b3110
add esp, 8
test eax, eax
jne 0x51366a
cmp dword [esp + 0x68], 0
je 0x513631
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebp
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x8c]
push ebx
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x94]
push esi
push edi
push edx
push eax
push ecx
call fcn.00512d30
add esp, 0x4c
test eax, eax
je 0x51366a
test ebp, ebp
je 0x51366a
cmp dword [esp + 0x14], 0
je 0x51366a
cmp dword [esp + 0x18], 0
jne 0x51366a
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 1
jmp 0x51366a
push 0
push 0
push 0
push 0
push 0
mov edx, dword [esp + 0x74]
push 0
mov eax, dword [esp + 0x40]
push 0
mov ecx, dword [esp + 0x78]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push edi
push edx
push eax
push ecx
call fcn.00512d30
add esp, 0x4c
test eax, eax
jne 0x5136b8
push 0x5d98b0
push ebx
call fcn.004b0230
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x513524
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x513752
test esi, esi
je 0x5136d3
mov eax, esi
neg eax
pop edi
mov dword [ebx], esi
sbb eax, eax
pop esi
and eax, 0xfffffd40
pop ebp
add eax, 0x2c0
pop ebx
add esp, 0x48
ret
mov eax, 1
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffd40
pop ebp
add eax, 0x2c0
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x513720
test ebp, ebp
je 0x5136f9
mov eax, ebp
neg eax
pop edi
sbb eax, eax
pop esi
mov dword [ebx], ebp
and eax, 0xfffffd40
pop ebp
add eax, 0x2c0
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x51373a
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x60]
push edx
push edi
push eax
mov dword [esp + 0x6c], 0
call fcn.0050f810
mov eax, dword [esp + 0x6c]
add esp, 0xc
test eax, eax
je 0x513738
mov dword [ebx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffd40
pop ebp
add eax, 0x2c0
pop ebx
add esp, 0x48
ret
mov dword [ebx], edi
mov eax, dword [ebx]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffd40
pop ebp
add eax, 0x2c0
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffd40
pop ebp
add eax, 0x2c0
pop ebx
add esp, 0x48
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x48
ret