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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test bl, 1
je 0x47a29e
cmp dword [esi], 0xffffffff
jne 0x47a29e
mov eax, dword [edi]
mov dword [esi], eax
test ebx, 0x2000
je 0x47a2b1
cmp dword [esi + 4], 0xffffffff
jne 0x47a2b1
mov eax, dword [edi + 4]
jmp 0x47a2c3
test bl, 2
je 0x47a2c6
cmp dword [esi + 4], 0xffffffff
jne 0x47a2c6
imul eax, dword [edi + 4], 0x3e8
mov dword [esi + 4], eax
test bl, 4
je 0x47a2d7
cmp dword [esi + 8], 0xffffffff
jne 0x47a2d7
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
test bl, 8
je 0x47a2e8
cmp dword [esi + 0xc], 0xffffffff
jne 0x47a2e8
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
test ebx, 0x4000
je 0x47a2fd
cmp dword [esi + 0x10], 0xffffffff
jne 0x47a2fd
mov dword [esi + 0x10], 1
test ebx, 0x10000
je 0x47a312
cmp dword [esi + 0x10], 0xffffffff
jne 0x47a312
mov dword [esi + 0x10], 0
mov ecx, dword [sym.imp.WS2_32.dll_htons]
test bl, 0x10
je 0x47a336
cmp dword [esi + 0x14], 0xffffffff
jne 0x47a336
movzx eax, word [edi + 0x10]
push eax
call ecx
mov ecx, dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esi + 0x14], eax
test bl, 0x20
je 0x47a34e
cmp dword [esi + 0x18], 0xffffffff
jne 0x47a34e
movzx eax, word [edi + 0x12]
push eax
call ecx
movzx eax, ax
mov dword [esi + 0x18], eax
test ebx, 0x200
je 0x47a371
cmp dword [esi + 0x91a0], 0
jne 0x47a371
mov eax, dword [edi + 0x30]
mov dword [esi + 0x91a0], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x91a4], eax
test ebx, 0x800
je 0x47a385
cmp dword [esi + 0x1c], 0xffffffff
jne 0x47a385
mov eax, dword [edi + 0x14]
mov dword [esi + 0x1c], eax
test ebx, 0x1000
je 0x47a399
cmp dword [esi + 0x20], 0xffffffff
jne 0x47a399
mov eax, dword [edi + 0x18]
mov dword [esi + 0x20], eax
test ebx, 0x8000
je 0x47a3ad
cmp dword [esi + 0x38], 0xffffffff
jne 0x47a3ad
mov eax, dword [edi + 0x40]
mov dword [esi + 0x38], eax
test bl, 0x40
je 0x47a430
cmp dword [esi + 0x78], 0xffffffff
jne 0x47a430
mov eax, dword [edi + 0x20]
test eax, eax
jle 0x47a42a
imul eax, eax, 0x58
push eax
call dword [0x501144]
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
jne 0x47a3df
pop edi
pop esi
mov eax, 0xf
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x20], 0
jle 0x47a42a
xor edx, edx
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x74]
lea edx, [edx + 0x58]
mov dword [edx + eax - 0x58], 2
mov eax, dword [esi + 0x74]
mov dword [edx + eax - 0x44], 0
mov eax, dword [esi + 0x74]
mov dword [edx + eax - 0x40], 0
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 0x74]
mov eax, dword [eax + ebx*4]
inc ebx
mov dword [edx + ecx - 0x54], eax
cmp ebx, dword [edi + 0x20]
jl 0x47a3f0
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 0x20]
mov dword [esi + 0x78], eax
test bl, bl
jns 0x47a499
cmp dword [esi + 0x28], 0xffffffff
jne 0x47a499
mov eax, dword [edi + 0x28]
test eax, eax
jle 0x47a493
shl eax, 2
push eax
call dword [0x501144]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x47a3d3
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [edi + 0x28], edx
jle 0x47a493
mov dword [esi + 0x28], edx
mov eax, dword [edi + 0x24]
push dword [eax + edx*4]
call fcn.0047e2c0
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, dword [esi + 0x24]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0x24]
cmp dword [eax + edx*4], 0
je 0x47a3d3
inc edx
mov dword [ebp - 4], edx
cmp edx, dword [edi + 0x28]
jl 0x47a463
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
test ebx, 0x100
je 0x47a4bd
cmp dword [esi + 0x34], 0
jne 0x47a4bd
push dword [edi + 0x2c]
call fcn.0047e2c0
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x47a3d3
test ebx, 0x400
je 0x47a52f
cmp dword [esi + 0x30], 0xffffffff
jne 0x47a52f
mov eax, dword [edi + 0x3c]
test eax, eax
jle 0x47a529
lea eax, [eax + eax*4]
shl eax, 3
push eax
call dword [0x501144]
add esp, 4
mov dword [esi + 0x2c], eax
test eax, eax
je 0x47a3d3
cmp dword [edi + 0x3c], 0
jle 0x47a529
xor edx, edx
xor ebx, ebx
mov ecx, dword [edi + 0x38]
lea edx, [edx + 0x28]
mov eax, dword [esi + 0x2c]
inc ebx
movups xmm0, xmmword [ecx + edx - 0x28]
movups xmmword [eax + edx - 0x28], xmm0
movups xmm0, xmmword [ecx + edx - 0x18]
movups xmmword [eax + edx - 0x18], xmm0
movq xmm0, qword [ecx + edx - 8]
movq qword [eax + edx - 8], xmm0
cmp ebx, dword [edi + 0x3c]
jl 0x47a4f7
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x30], eax
test ebx, 0x20000
je 0x47a55e
cmp dword [esi + 0x91c0], 0
jne 0x47a55e
push dword [edi + 0x44]
call fcn.0047e2c0
add esp, 4
mov dword [esi + 0x91c0], eax
test eax, eax
jne 0x47a55e
cmp dword [edi + 0x44], eax
jne 0x47a3d3
pop edi
mov dword [esi + 0x70], ebx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret